Revert "Fix testKeepTranslogAfterGlobalCheckpoint"
This reverts commit a88d54eb2d
.
This commit is contained in:
parent
924f0bd243
commit
848d3bc153
|
@ -4891,8 +4891,8 @@ public class InternalEngineTests extends EngineTestCase {
|
||||||
engine.syncTranslog();
|
engine.syncTranslog();
|
||||||
}
|
}
|
||||||
if (frequently()) {
|
if (frequently()) {
|
||||||
engine.flush(randomBoolean(), true);
|
|
||||||
final long lastSyncedGlobalCheckpoint = Translog.readGlobalCheckpoint(translogPath, translogUUID);
|
final long lastSyncedGlobalCheckpoint = Translog.readGlobalCheckpoint(translogPath, translogUUID);
|
||||||
|
engine.flush(randomBoolean(), true);
|
||||||
final List<IndexCommit> commits = DirectoryReader.listCommits(store.directory());
|
final List<IndexCommit> commits = DirectoryReader.listCommits(store.directory());
|
||||||
// Keep only one safe commit as the oldest commit.
|
// Keep only one safe commit as the oldest commit.
|
||||||
final IndexCommit safeCommit = commits.get(0);
|
final IndexCommit safeCommit = commits.get(0);
|
||||||
|
|
Loading…
Reference in New Issue