Skip to content

Commit 97a0d15

Browse files
committed
Adjust commit sizes to reflect change in TieredMergePolicy
1 parent 087f468 commit 97a0d15

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

x-pack/plugin/esql/compute/src/test/java/org/elasticsearch/compute/lucene/read/ValuesSourceReaderOperatorTests.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ protected SourceOperator simpleInput(BlockFactory blockFactory, int size) {
178178
}
179179

180180
private int commitEvery(int numDocs) {
181-
return Math.max(1, (int) Math.ceil((double) numDocs / 10));
181+
return Math.max(1, (int) Math.ceil((double) numDocs / 8));
182182
}
183183

184184
private SourceOperator simpleInput(DriverContext context, int size, int commitEvery, int pageSize) {
@@ -723,8 +723,8 @@ private void testLoadAllStatus(boolean allInOnePage) {
723723
DriverContext driverContext = driverContext();
724724
int numDocs = between(100, 5000);
725725
List<Page> input = CannedSourceOperator.collectPages(simpleInput(driverContext, numDocs, commitEvery(numDocs), numDocs));
726-
assertThat(reader.leaves(), hasSize(10));
727-
assertThat(input, hasSize(10));
726+
assertThat(reader.leaves(), hasSize(8));
727+
assertThat(input, hasSize(8));
728728
List<FieldCase> cases = infoAndChecksForEachType(
729729
Block.MvOrdering.DEDUPLICATED_AND_SORTED_ASCENDING,
730730
Block.MvOrdering.DEDUPLICATED_AND_SORTED_ASCENDING

0 commit comments

Comments
 (0)