Skip to content

Do not increment metrics on CaffeineCache#getIfPresent call #539

Do not increment metrics on CaffeineCache#getIfPresent call

Do not increment metrics on CaffeineCache#getIfPresent call #539

GitHub Actions / Build summary for 336eea4c026e0b3767c1067fb714479669f17def completed Apr 18, 2024 in 0s

Build summary for 336eea4c026e0b3767c1067fb714479669f17def

Failing Jobs - Building 336eea4 - Back to Workflow run summary

Status Name Step Failures Logs Raw logs Build scan
Native Tests - Cache Build Failures Logs Raw logs 🚧

Details

Test Failures

⚙️ Native Tests - Cache #

- Failing: integration-tests/cache 

📦 integration-tests/cache

# Tests:    5
+ Success:  4
- Failures: 0
- Errors:   1
! Skipped:  0

io.quarkus.it.cache.CacheITCase.testGetIfPresentMetrics - Source on GitHub - 🠅

java.lang.NullPointerException: Cannot invoke "io.quarkus.cache.Cache.as(java.lang.Class)" because "this.cache" is null
	at io.quarkus.it.cache.CacheTestCase.testGetIfPresentMetrics(CacheTestCase.java:50)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:821)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)

Annotations

Check failure on line 1 in integration-tests/cache/src/test/java/io/quarkus/it/cache/CacheITCase.java

See this annotation in the file changed.

@github-actions github-actions / Build summary for 336eea4c026e0b3767c1067fb714479669f17def

Native Tests - Cache

java.lang.NullPointerException: Cannot invoke "io.quarkus.cache.Cache.as(java.lang.Class)" because "this.cache" is null
	at io.quarkus.it.cache.CacheTestCase.testGetIfPresentMetrics(CacheTestCase.java:50)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
Raw output
java.lang.NullPointerException: Cannot invoke "io.quarkus.cache.Cache.as(java.lang.Class)" because "this.cache" is null
	at io.quarkus.it.cache.CacheTestCase.testGetIfPresentMetrics(CacheTestCase.java:50)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at io.quarkus.test.junit.QuarkusTestExtension.interceptTestMethod(QuarkusTestExtension.java:821)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)
	at java.base/java.util.ArrayList.forEach(ArrayList.java:1511)