mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-02 17:09:18 +00:00
For now do not guard against already failed engine
This commit is contained in:
parent
2a9388912b
commit
5576526c91
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user