Apache Lucene open-source search software
SOLR-10141: Upgrade to Caffeine 2.4.0 to fix issues with removal listener
yonike9e02a231351
diff --git a/lucene/ivy-versions.properties b/lucene/ivy-versions.propertiesindex 3cd74ff12e2..7f57fedddf8 100644--- a/lucene/ivy-versions.properties+++ b/lucene/ivy-versions.properties@@ -22,7 +22,7 @@ com.fasterxml.jackson.core.version = 2.5.4/com.fasterxml.jackson.core/jackson-databind = ${com.fasterxml.jackson.core.version}/com.fasterxml.jackson.dataformat/jackson-dataformat-smile = ${com.fasterxml.jackson.core.version}-/com.github.ben-manes.caffeine/caffeine = 2.3.5+/com.github.ben-manes.caffeine/caffeine = 2.4.0/com.google.guava/guava = 14.0.1diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex cc3a3b238e0..d4882e9e3cc 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -154,7 +154,7 @@ Bug Fixes* SOLR-10121: Fix race conditions in HDFS BlockCache that can contribute to corruption in highconcurrency situations. (yonik)-* SOLR-10141: Upgrade to Caffeine 2.3.5 since v1.0.1 contributed to BlockCache corruption because the+* SOLR-10141: Upgrade to Caffeine 2.4.0 since v1.0.1 contributed to BlockCache corruption because theremoval listener was called more than once for some items and not at all for other items. (Ben Manes, yonik)* SOLR-9846: Overseer is not always closed after being started. (Mark Miller)diff --git a/solr/core/src/test/org/apache/solr/store/blockcache/BlockCacheTest.java b/solr/core/src/test/org/apache/solr/store/blockcache/BlockCacheTest.javaindex e23981a0668..6b12e2539d4 100644--- a/solr/core/src/test/org/apache/solr/store/blockcache/BlockCacheTest.java+++ b/solr/core/src/test/org/apache/solr/store/blockcache/BlockCacheTest.java@@ -227,15 +227,15 @@ public class BlockCacheTest extends LuceneTestCase {// Sanity test the underlying concurrent map that BlockCache is using, in the same way that we use it.@Test- @AwaitsFix(bugUrl = "https://issues.apache.org/jira/browse/SOLR-10141")public void testCacheConcurrent() throws Exception {Random rnd = random();+ // TODO: introduce more randomness in cache size, hit rate, etcfinal int blocksInTest = 400;final int maxEntries = blocksInTest/2;final int nThreads=64;- final int nReads=10000000;+ final int nReads=1000000;final int readsPerThread=nReads/nThreads;final int readLastBlockOdds=10; // odds (1 in N) of the next block operation being on the same block as the previous operation... helps flush concurrency issuesfinal boolean updateAnyway = true; // sometimes insert a new entry for the key even if one was founddiff --git a/solr/licenses/caffeine-2.3.5.jar.sha1 b/solr/licenses/caffeine-2.3.5.jar.sha1deleted file mode 100644index 128fe1adf2d..00000000000--- a/solr/licenses/caffeine-2.3.5.jar.sha1+++ /dev/null@@ -1 +0,0 @@-672d74bd3fb0611f671ea4bf65e278c8a5d4af3cdiff --git a/solr/licenses/caffeine-2.4.0.jar.sha1 b/solr/licenses/caffeine-2.4.0.jar.sha1new file mode 100644index 00000000000..9c317d92734--- /dev/null+++ b/solr/licenses/caffeine-2.4.0.jar.sha1@@ -0,0 +1 @@+5aa8bbb851b1ad403cc140094ba4a25998369efe