diff --git a/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java b/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java index bce13cce401c9..8aee866b56e0e 100644 --- a/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java +++ b/core/src/main/java/org/elasticsearch/index/shard/IndexShard.java @@ -1755,11 +1755,6 @@ public void waitForOpsToComplete(final long seqNo) throws InterruptedException { public void initiateTracking(final String allocationId) { verifyPrimary(); getEngine().seqNoService().initiateTracking(allocationId); - /* - * We could have blocked so long waiting for the replica to catch up that we fell idle and there will not be a background sync to - * the replica; mark our self as active to force a future background sync. - */ - active.compareAndSet(false, true); } /**