Commit e098e83
committed
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 257eb02 commit e098e83
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 | |
|---|---|---|---|
| |||
5131 | 5131 | | |
5132 | 5132 | | |
5133 | 5133 | | |
| 5134 | + | |
| 5135 | + | |
| 5136 | + | |
5134 | 5137 | | |
5135 | 5138 | | |
5136 | 5139 | | |
| |||
0 commit comments