mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-03 17:39:15 +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) {
|
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.
|
// fail the engine. This will cause this shard to also be removed from the node's index service.
|
||||||
final Engine engine = getEngineOrNull();
|
getEngine().failEngine(reason, e);
|
||||||
if (engine == null) {
|
|
||||||
logger.trace("ignoring request to fail the shard, we're already closed. (reason: [{}])", e, reason);
|
|
||||||
|
|
||||||
} else {
|
|
||||||
engine.failEngine(reason, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public Engine.Searcher acquireSearcher(String source) {
|
public Engine.Searcher acquireSearcher(String source) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user