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();
|
||||
}
|
||||
if (frequently()) {
|
||||
engine.flush(randomBoolean(), true);
|
||||
final long lastSyncedGlobalCheckpoint = Translog.readGlobalCheckpoint(translogPath, translogUUID);
|
||||
engine.flush(randomBoolean(), true);
|
||||
final List<IndexCommit> commits = DirectoryReader.listCommits(store.directory());
|
||||
// Keep only one safe commit as the oldest commit.
|
||||
final IndexCommit safeCommit = commits.get(0);
|
||||
|
|
Loading…
Reference in New Issue