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:
parent
7bfaba98c2
commit
56083ba1ff
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue