Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ void testThreadSafetyBruteForce() {
assertThat(maxConcurrency.get(), is(greaterThan(1)));
assertThat(maxNodes.get(), is(lessThanOrEqualTo(concurrency * 2)));

// without queries, we should at least have some compaction
// without queries, we may have some compaction so we shouldn't be too strict
final ExecutionObserver.Stats preCompactionStats = observer.stats();
assertThat(preCompactionStats.executing, is(0));
assertThat(preCompactionStats.nodes, is(both(greaterThan(0)).and(lessThan((int) Math.sqrt(concurrency)))));
assertThat(preCompactionStats.nodes, is(both(greaterThan(0)).and(lessThan(concurrency))));

// query triggers tail compaction, leaving 2 or fewer nodes.
assertThat(observer.anyExecuting(), is(false));
Expand Down