Skip to content

Commit

Permalink
Simplify EventListenerJava.test
Browse files Browse the repository at this point in the history
  • Loading branch information
mszeszko-meta committed Jan 24, 2025
1 parent 9bdb1f8 commit fb106f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions java/src/test/java/org/rocksdb/EventListenerTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ void deleteTableFile(final AbstractEventListener el, final AtomicBoolean wasCbCa
final int KEY_SIZE = 20;
final int VALUE_SIZE = 1000;
final int FILE_SIZE = 64000;
final int NUM_FILES = 10;
final int NUM_FILES = 2;

final int KEY_INTERVAL = 10000;
/*
* Intention of these options is to end up reliably with 10 files
* Intention of these options is to end up reliably with NUM_FILES files.
* we will be deleting using deleteFilesInRange.
* It is writing roughly number of keys that will fit in 10 files (target size)
* It is writing interleaved so that files from memory on L0 will overlap
* Then compaction cleans everything, and we should end up with 10 files
* It is writing roughly number of keys that will fit in NUM_FILES files (target size).
* It is writing interleaved so that files from memory on L0 will overlap.
* Then compaction cleans everything, and we should end up with NUM_FILES files.
*/
try (final Options opt = new Options()
.setCreateIfMissing(true)
Expand Down

0 comments on commit fb106f8

Please sign in to comment.