Revert "Fix testKeepTranslogAfterGlobalCheckpoint"

This reverts commit a88d54eb2d.
This commit is contained in:
Nhat Nguyen 2020-02-25 14:12:35 -05:00
parent 924f0bd243
commit 848d3bc153
1 changed files with 1 additions and 1 deletions

View File

@ -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);