@@ -48,7 +48,6 @@ private SimpleLsmKvDb createDb() {
4848 return SimpleLsmKvDb .builder (dataDirectory )
4949 .memTableFlushThreshold (1024 )
5050 .blockSize (256 )
51- .cacheSize (4 * 1024 * 1024 )
5251 .level0FileNumCompactTrigger (4 )
5352 .compressOptions (new CompressOptions ("none" , 1 ))
5453 .build ();
@@ -197,7 +196,6 @@ public void testCompaction() throws IOException {
197196 SimpleLsmKvDb .builder (dataDirectory )
198197 .memTableFlushThreshold (256 )
199198 .blockSize (128 )
200- .cacheSize (4 * 1024 * 1024 )
201199 .level0FileNumCompactTrigger (3 )
202200 .compressOptions (new CompressOptions ("none" , 1 ))
203201 .build ();
@@ -320,7 +318,6 @@ public void testCloseFlushesMemTable() throws IOException {
320318 SimpleLsmKvDb .builder (dbDir )
321319 .memTableFlushThreshold (1024 * 1024 ) // large threshold, won't auto-flush
322320 .blockSize (256 )
323- .cacheSize (4 * 1024 * 1024 )
324321 .level0FileNumCompactTrigger (10 )
325322 .compressOptions (new CompressOptions ("none" , 1 ))
326323 .build ();
@@ -349,7 +346,6 @@ public void testWithCompression() throws IOException {
349346 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "compressed-db" ))
350347 .memTableFlushThreshold (512 )
351348 .blockSize (256 )
352- .cacheSize (4 * 1024 * 1024 )
353349 .level0FileNumCompactTrigger (4 )
354350 .compressOptions (CompressOptions .defaultOptions ())
355351 .build ();
@@ -397,7 +393,6 @@ public void testUniversalCompactionTriggeredByRunCount() throws IOException {
397393 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "universal-trigger-db" ))
398394 .memTableFlushThreshold (1024 * 1024 )
399395 .blockSize (256 )
400- .cacheSize (4 * 1024 * 1024 )
401396 .level0FileNumCompactTrigger (3 )
402397 .compressOptions (new CompressOptions ("none" , 1 ))
403398 .build ();
@@ -434,7 +429,6 @@ public void testUniversalCompactionWithOverlappingKeys() throws IOException {
434429 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "universal-overlap-db" ))
435430 .memTableFlushThreshold (1024 * 1024 )
436431 .blockSize (256 )
437- .cacheSize (4 * 1024 * 1024 )
438432 .level0FileNumCompactTrigger (3 )
439433 .compressOptions (new CompressOptions ("none" , 1 ))
440434 .build ();
@@ -470,7 +464,6 @@ public void testUniversalCompactionReducesFileCount() throws IOException {
470464 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "universal-reduce-db" ))
471465 .memTableFlushThreshold (1024 * 1024 )
472466 .blockSize (256 )
473- .cacheSize (4 * 1024 * 1024 )
474467 .level0FileNumCompactTrigger (3 )
475468 .compressOptions (new CompressOptions ("none" , 1 ))
476469 .build ();
@@ -513,7 +506,6 @@ public void testUniversalCompactionMultipleRounds() throws IOException {
513506 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "universal-multi-db" ))
514507 .memTableFlushThreshold (512 )
515508 .blockSize (128 )
516- .cacheSize (4 * 1024 * 1024 )
517509 .level0FileNumCompactTrigger (3 )
518510 .sizeRatio (50 )
519511 .compressOptions (new CompressOptions ("none" , 1 ))
@@ -545,7 +537,6 @@ public void testUniversalCompactionPreservesTombstonesInPartialMerge() throws IO
545537 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "universal-tombstone-db" ))
546538 .memTableFlushThreshold (1024 * 1024 )
547539 .blockSize (256 )
548- .cacheSize (4 * 1024 * 1024 )
549540 .level0FileNumCompactTrigger (4 )
550541 .compressOptions (new CompressOptions ("none" , 1 ))
551542 .build ();
@@ -593,7 +584,6 @@ public void testUniversalCompactionWithUpdatesAcrossRuns() throws IOException {
593584 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "universal-update-db" ))
594585 .memTableFlushThreshold (1024 * 1024 )
595586 .blockSize (256 )
596- .cacheSize (4 * 1024 * 1024 )
597587 .level0FileNumCompactTrigger (3 )
598588 .compressOptions (new CompressOptions ("none" , 1 ))
599589 .build ();
@@ -638,7 +628,6 @@ public void testLargeScaleFlushCompactAndFullCompact() throws IOException {
638628 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "large-scale-db" ))
639629 .memTableFlushThreshold (256 )
640630 .blockSize (64 )
641- .cacheSize (4 * 1024 * 1024 )
642631 .level0FileNumCompactTrigger (3 )
643632 .sizeRatio (20 )
644633 .compressOptions (new CompressOptions ("none" , 1 ))
@@ -792,7 +781,6 @@ public void testLevelStats() throws IOException {
792781 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "stats-db" ))
793782 .memTableFlushThreshold (1024 * 1024 )
794783 .blockSize (256 )
795- .cacheSize (4 * 1024 * 1024 )
796784 .level0FileNumCompactTrigger (10 )
797785 .compressOptions (new CompressOptions ("none" , 1 ))
798786 .build ();
@@ -827,7 +815,6 @@ public int compare(MemorySlice a, MemorySlice b) {
827815 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "reverse-db" ))
828816 .memTableFlushThreshold (1024 * 1024 )
829817 .blockSize (256 )
830- .cacheSize (4 * 1024 * 1024 )
831818 .level0FileNumCompactTrigger (3 )
832819 .compressOptions (new CompressOptions ("none" , 1 ))
833820 .keyComparator (reverseComparator )
@@ -869,7 +856,6 @@ public int compare(MemorySlice a, MemorySlice b) {
869856 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "reverse-compact-db" ))
870857 .memTableFlushThreshold (1024 * 1024 )
871858 .blockSize (256 )
872- .cacheSize (4 * 1024 * 1024 )
873859 .level0FileNumCompactTrigger (3 )
874860 .compressOptions (new CompressOptions ("none" , 1 ))
875861 .keyComparator (reverseComparator )
@@ -915,7 +901,6 @@ public int compare(MemorySlice a, MemorySlice b) {
915901 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "reverse-delete-db" ))
916902 .memTableFlushThreshold (1024 * 1024 )
917903 .blockSize (256 )
918- .cacheSize (4 * 1024 * 1024 )
919904 .level0FileNumCompactTrigger (4 )
920905 .compressOptions (new CompressOptions ("none" , 1 ))
921906 .keyComparator (reverseComparator )
@@ -955,7 +940,6 @@ public void testNonOverlappingFilesSkipMerge() throws IOException {
955940 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "non-overlap-skip-db" ))
956941 .memTableFlushThreshold (1024 * 1024 )
957942 .blockSize (256 )
958- .cacheSize (4 * 1024 * 1024 )
959943 .level0FileNumCompactTrigger (3 )
960944 .compressOptions (new CompressOptions ("none" , 1 ))
961945 .build ();
@@ -985,7 +969,6 @@ public void testOverlappingFilesAreMergedInGroups() throws IOException {
985969 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "overlap-group-db" ))
986970 .memTableFlushThreshold (1024 * 1024 )
987971 .blockSize (256 )
988- .cacheSize (4 * 1024 * 1024 )
989972 .level0FileNumCompactTrigger (3 )
990973 .compressOptions (new CompressOptions ("none" , 1 ))
991974 .build ();
@@ -1019,7 +1002,6 @@ public void testMixedOverlapAndNonOverlapGroups() throws IOException {
10191002 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "mixed-group-db" ))
10201003 .memTableFlushThreshold (1024 * 1024 )
10211004 .blockSize (256 )
1022- .cacheSize (4 * 1024 * 1024 )
10231005 .level0FileNumCompactTrigger (4 )
10241006 .compressOptions (new CompressOptions ("none" , 1 ))
10251007 .build ();
@@ -1068,7 +1050,6 @@ public void testTombstoneFileNotSkippedDuringFullCompact() throws IOException {
10681050 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "tombstone-no-skip-db" ))
10691051 .memTableFlushThreshold (1024 * 1024 )
10701052 .blockSize (256 )
1071- .cacheSize (4 * 1024 * 1024 )
10721053 .level0FileNumCompactTrigger (3 )
10731054 .compressOptions (new CompressOptions ("none" , 1 ))
10741055 .build ();
@@ -1099,7 +1080,6 @@ public void testGroupMergeWithMultipleCompactionRounds() throws IOException {
10991080 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "multi-round-group-db" ))
11001081 .memTableFlushThreshold (1024 * 1024 )
11011082 .blockSize (256 )
1102- .cacheSize (4 * 1024 * 1024 )
11031083 .level0FileNumCompactTrigger (3 )
11041084 .compressOptions (new CompressOptions ("none" , 1 ))
11051085 .build ();
@@ -1143,7 +1123,6 @@ public void testCompactionMergesAllL0RunsAndIncludesL1() throws IOException {
11431123 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "l0-clear-db" ))
11441124 .memTableFlushThreshold (1024 * 1024 )
11451125 .blockSize (256 )
1146- .cacheSize (4 * 1024 * 1024 )
11471126 .level0FileNumCompactTrigger (3 )
11481127 .sizeRatio (1 )
11491128 .compressOptions (new CompressOptions ("none" , 1 ))
@@ -1197,7 +1176,6 @@ public void testCompactionWithManyRoundsNoOverflow() throws IOException {
11971176 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "many-l0-db" ))
11981177 .memTableFlushThreshold (1024 * 1024 )
11991178 .blockSize (256 )
1200- .cacheSize (4 * 1024 * 1024 )
12011179 .level0FileNumCompactTrigger (3 )
12021180 .sizeRatio (1 )
12031181 .compressOptions (new CompressOptions ("none" , 1 ))
@@ -1249,7 +1227,6 @@ public void testCompactionWithOverlappingKeysAcrossL0AndL1() throws IOException
12491227 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "overlap-l0-l1-db" ))
12501228 .memTableFlushThreshold (1024 * 1024 )
12511229 .blockSize (256 )
1252- .cacheSize (4 * 1024 * 1024 )
12531230 .level0FileNumCompactTrigger (3 )
12541231 .sizeRatio (1 )
12551232 .compressOptions (new CompressOptions ("none" , 1 ))
@@ -1308,7 +1285,6 @@ public void testGroupMergePreservesDeleteSemantics() throws IOException {
13081285 SimpleLsmKvDb .builder (new File (tempDir .toFile (), "group-delete-db" ))
13091286 .memTableFlushThreshold (1024 * 1024 )
13101287 .blockSize (256 )
1311- .cacheSize (4 * 1024 * 1024 )
13121288 .level0FileNumCompactTrigger (3 )
13131289 .compressOptions (new CompressOptions ("none" , 1 ))
13141290 .build ();
0 commit comments