From 848d3bc1534bf72c81f2b705932146409c097768 Mon Sep 17 00:00:00 2001 From: Nhat Nguyen Date: Tue, 25 Feb 2020 14:12:35 -0500 Subject: [PATCH] Revert "Fix testKeepTranslogAfterGlobalCheckpoint" This reverts commit a88d54eb2d710003f7cb838ba3f342e2b7ae5031. --- .../org/elasticsearch/index/engine/InternalEngineTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java b/server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java index 098ac87426a..33562992839 100644 --- a/server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java +++ b/server/src/test/java/org/elasticsearch/index/engine/InternalEngineTests.java @@ -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 commits = DirectoryReader.listCommits(store.directory()); // Keep only one safe commit as the oldest commit. final IndexCommit safeCommit = commits.get(0);