Remove assertion after locally recover replica (#45181)

If the disk becomes broken after we have locally recovered shard up to
the global checkpoint, then the assertion won't hold.
This commit is contained in:
Nhat Nguyen 2019-08-05 09:05:29 -04:00
parent 7bfaba98c2
commit 56083ba1ff
1 changed files with 0 additions and 4 deletions

View File

@ -1434,10 +1434,6 @@ public class IndexShard extends AbstractIndexShardComponent implements IndicesCl
assert newSafeCommit.isPresent() : "no safe commit found after local recovery";
return newSafeCommit.get().localCheckpoint + 1;
} catch (Exception e) {
if (Assertions.ENABLED) {
throw new AssertionError(
"failed to find the safe commit after recovering shard locally up to global checkpoint " + globalCheckpoint, e);
}
logger.debug(new ParameterizedMessage(
"failed to find the safe commit after recovering shard locally up to global checkpoint {}", globalCheckpoint), e);
return UNASSIGNED_SEQ_NO;