Skip to content

Commit

Permalink
Merge pull request opensearch-project#11241 from s1monw/readd_fail_on…
Browse files Browse the repository at this point in the history
…_recovery

[RECOVERY] Add engine failure on recovery finalization corruption back
  • Loading branch information
s1monw committed May 20, 2015
2 parents 409e4e5 + 8949cb8 commit 40bd56b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,7 @@ public int compare(StoreFileMetaData o1, StoreFileMetaData o2) {
for (StoreFileMetaData md : metadata) {
logger.debug("{} checking integrity for file {} after remove corruption exception", shard.shardId(), md);
if (store.checkIntegrityNoException(md) == false) { // we are corrupted on the primary -- fail!
shard.engine().failEngine("recovery", corruptIndexException);
logger.warn("{} Corrupted file detected {} checksum mismatch", shard.shardId(), md);
throw corruptIndexException;
}
Expand Down

0 comments on commit 40bd56b

Please sign in to comment.