We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ba7402 commit c4690ddCopy full SHA for c4690dd
core/src/test/java/org/elasticsearch/index/translog/TranslogTests.java
@@ -2254,6 +2254,10 @@ public void testPrepareCommitAndCommit() throws IOException {
2254
if (rarely()) {
2255
final long generation = translog.currentFileGeneration();
2256
translog.prepareCommit();
2257
+ if (rarely()) {
2258
+ // simulate generation filling up and rolling between preparing the commit and committing
2259
+ translog.rollGeneration();
2260
+ }
2261
translog.commit(randomIntBetween(1, Math.toIntExact(generation)));
2262
for (long g = 0; i < generation; g++) {
2263
assertFileDeleted(translog, g);
0 commit comments