[
https://issues.apache.org/jira/browse/OAK-9879?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marcel Reutegger updated OAK-9879:
----------------------------------
Component/s: core-spi
(was: blob-plugins)
Description:
FileCacheTest in oak-blob-plugins sometimes fails with
{noformat}
java.lang.AssertionError: expected:<2> but was:<1>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:633)
at
org.apache.jackrabbit.oak.plugins.blob.FileCacheTest.assertCacheStats(FileCacheTest.java:566)
at
org.apache.jackrabbit.oak.plugins.blob.FileCacheTest.getDifferentConcurrent(FileCacheTest.java:267)
{noformat}
I can reproduce locally when running the test repeatedly.
was:
The test sometimes fails with
{noformat}
java.lang.AssertionError: expected:<2> but was:<1>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:633)
at
org.apache.jackrabbit.oak.plugins.blob.FileCacheTest.assertCacheStats(FileCacheTest.java:566)
at
org.apache.jackrabbit.oak.plugins.blob.FileCacheTest.getDifferentConcurrent(FileCacheTest.java:267)
{noformat}
I can reproduce locally when running the test repeatedly.
Summary: CacheLIRS statistics may return incorrect load count (was:
FileCacheTest.getDifferentConcurrent() fails occasionally)
I turned this into a bug for CacheLIRS. The root cause is a concurrent update
of loadSuccessCount without proper synchronization.
> CacheLIRS statistics may return incorrect load count
> ----------------------------------------------------
>
> Key: OAK-9879
> URL: https://issues.apache.org/jira/browse/OAK-9879
> Project: Jackrabbit Oak
> Issue Type: Task
> Components: core-spi
> Reporter: Marcel Reutegger
> Priority: Minor
>
> FileCacheTest in oak-blob-plugins sometimes fails with
> {noformat}
> java.lang.AssertionError: expected:<2> but was:<1>
> at org.junit.Assert.fail(Assert.java:89)
> at org.junit.Assert.failNotEquals(Assert.java:835)
> at org.junit.Assert.assertEquals(Assert.java:647)
> at org.junit.Assert.assertEquals(Assert.java:633)
> at
> org.apache.jackrabbit.oak.plugins.blob.FileCacheTest.assertCacheStats(FileCacheTest.java:566)
> at
> org.apache.jackrabbit.oak.plugins.blob.FileCacheTest.getDifferentConcurrent(FileCacheTest.java:267)
> {noformat}
> I can reproduce locally when running the test repeatedly.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)