mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 06:55:32 +00:00
ignore recovery when no node to recover from (it has disconnected, for example)
This commit is contained in:
parent
3fb68c52da
commit
5ff46911b6
@ -269,6 +269,8 @@ public class RecoveryAction extends AbstractIndexShardComponent implements Close
|
|||||||
}
|
}
|
||||||
} else if (cause instanceof IgnoreRecoveryException) {
|
} else if (cause instanceof IgnoreRecoveryException) {
|
||||||
throw (IgnoreRecoveryException) cause;
|
throw (IgnoreRecoveryException) cause;
|
||||||
|
} else if (cause instanceof NodeNotConnectedException) {
|
||||||
|
throw new IgnoreRecoveryException("Ignore recovery attemot, remote node not connected", e);
|
||||||
}
|
}
|
||||||
throw new RecoveryFailedException(shardId, node, targetNode, e);
|
throw new RecoveryFailedException(shardId, node, targetNode, e);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user