Skip to content

Commit

Permalink
Revert "Fix testKeepTranslogAfterGlobalCheckpoint"
Browse files Browse the repository at this point in the history
This reverts commit 5f20e2e.
  • Loading branch information
dnhatn committed Feb 26, 2020
1 parent a228778 commit c63e621
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4797,8 +4797,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 c63e621

Please sign in to comment.