diff --git a/core/src/main/java/org/elasticsearch/indices/recovery/RecoverySourceHandler.java b/core/src/main/java/org/elasticsearch/indices/recovery/RecoverySourceHandler.java index 28e2e8d32c8..73ab3197568 100644 --- a/core/src/main/java/org/elasticsearch/indices/recovery/RecoverySourceHandler.java +++ b/core/src/main/java/org/elasticsearch/indices/recovery/RecoverySourceHandler.java @@ -246,9 +246,6 @@ public class RecoverySourceHandler { } return tracker.getCheckpoint() >= endingSeqNo; } else { - // norelease this can currently happen if a snapshot restore rolls the primary back to a previous commit point; in this - // situation the local checkpoint on the replica can be far in advance of the maximum sequence number on the primary violating - // all assumptions regarding local and global checkpoints return false; } }