Skip to content

Commit

Permalink
Revert "Fix testKeepTranslogAfterGlobalCheckpoint"
Browse files Browse the repository at this point in the history
This reverts commit a88d54e.
  • Loading branch information
dnhatn committed Feb 25, 2020
1 parent 924f0bd commit 848d3bc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4891,8 +4891,8 @@ protected void commitIndexWriter(IndexWriter writer, Translog translog, String s
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);
Expand Down

0 comments on commit 848d3bc

Please sign in to comment.