Commit a74ba9c
authored
Fix testShouldPeriodicallyFlushAfterMerge (#52243)
MockRandomMergePolicy randomly determines if a segment should use a
compound format. This can cause a force merge performing two merges: (1)
merging to a single segment, (2) rewriting the new segment using the
compound format. If the second merge completes after we have flushed,
then it can flip the flag shouldPeriodicallyFlushAfterBigMerge to true.
Closes #522051 parent 96359c3 commit a74ba9c
File tree
1 file changed
+3
-0
lines changed- server/src/test/java/org/elasticsearch/index/engine
1 file changed
+3
-0
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4753 | 4753 | | |
4754 | 4754 | | |
4755 | 4755 | | |
| 4756 | + | |
| 4757 | + | |
| 4758 | + | |
4756 | 4759 | | |
4757 | 4760 | | |
4758 | 4761 | | |
| |||
0 commit comments