Skip to content

Commit

Permalink
Fail the engine/shard when refresh failed
Browse files Browse the repository at this point in the history
When refresh failed, it would fail due to a serious issue in the shard (mainly corrupted index). Fail the engine in that cause, which will cause the shard to fail. The reason why its not only on CorruptedIndex failed is that any type of failure seems to be relevant here to fail the shard
closes #5633
  • Loading branch information
kimchy committed Apr 1, 2014
1 parent b138959 commit 7e8b1f5
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -730,6 +730,7 @@ public void refresh(Refresh refresh) throws EngineException {
} else if (currentWriter != indexWriter) {
// an index writer got replaced on us, ignore
} else {
failEngine(e);
throw new RefreshFailedEngineException(shardId, e);
}
}
Expand Down

0 comments on commit 7e8b1f5

Please sign in to comment.