For now do not guard against already failed engine

This commit is contained in:
Jason Tedor 2016-03-28 13:44:41 -04:00
parent 2a9388912b
commit 5576526c91

View File

@ -759,13 +759,7 @@ public class IndexShard extends AbstractIndexShardComponent {
*/
public void failShard(String reason, @Nullable Throwable e) {
// fail the engine. This will cause this shard to also be removed from the node's index service.
final Engine engine = getEngineOrNull();
if (engine == null) {
logger.trace("ignoring request to fail the shard, we're already closed. (reason: [{}])", e, reason);
} else {
engine.failEngine(reason, e);
}
getEngine().failEngine(reason, e);
}
public Engine.Searcher acquireSearcher(String source) {