From 53a0748f4345b540da598c25500f4fc402dbbf38 Mon Sep 17 00:00:00 2001 From: markrmiller Date: Wed, 16 Nov 2016 10:11:41 -0500 Subject: [PATCH] SOLR-9284: Reduce off heap cache size. --- .../org/apache/solr/store/blockcache/BlockDirectoryTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/solr/core/src/test/org/apache/solr/store/blockcache/BlockDirectoryTest.java b/solr/core/src/test/org/apache/solr/store/blockcache/BlockDirectoryTest.java index 5e4f1c59a23..4272c248b8c 100644 --- a/solr/core/src/test/org/apache/solr/store/blockcache/BlockDirectoryTest.java +++ b/solr/core/src/test/org/apache/solr/store/blockcache/BlockDirectoryTest.java @@ -114,7 +114,7 @@ public class BlockDirectoryTest extends SolrTestCaseJ4 { if (random().nextBoolean()) { Metrics metrics = new Metrics(); int blockSize = 8192; - int slabSize = blockSize * 32768; + int slabSize = blockSize * 16384; long totalMemory = 1 * slabSize; BlockCache blockCache = new BlockCache(metrics, true, totalMemory, slabSize, blockSize); BlockDirectoryCache cache = new BlockDirectoryCache(blockCache, "/collection1", metrics, true);