Skip to content

Commit 02bd8bb

Browse files
committed
No longer unidle shard during recovery
Previously we would unidle a primary shard during recovery in case the recovery target would miss a background global checkpoint sync. However, the background global checkpoint syncs are no longer tied to the primary shard falling idle and so this unidling is no longer needed. Relates #27757
1 parent e269593 commit 02bd8bb

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

core/src/main/java/org/elasticsearch/index/shard/IndexShard.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,11 +1750,6 @@ public void waitForOpsToComplete(final long seqNo) throws InterruptedException {
17501750
public void initiateTracking(final String allocationId) {
17511751
verifyPrimary();
17521752
getEngine().seqNoService().initiateTracking(allocationId);
1753-
/*
1754-
* 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
1755-
* the replica; mark our self as active to force a future background sync.
1756-
*/
1757-
active.compareAndSet(false, true);
17581753
}
17591754

17601755
/**

0 commit comments

Comments
 (0)