ignore recovery when no node to recover from (it has disconnected, for example)

This commit is contained in:
kimchy 2010-07-07 16:30:28 +03:00
parent 3fb68c52da
commit 5ff46911b6
1 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,8 @@ public class RecoveryAction extends AbstractIndexShardComponent implements Close
}
} else if (cause instanceof IgnoreRecoveryException) {
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);
} catch (Exception e) {