boolean isRetryableClusterBlockException(final Throwable e) { if (e instanceof ClusterBlockException) { return ((ClusterBlockException) e).retryable(); } return false; }
private boolean handleBlockExceptions(ClusterState state) { ClusterBlockException blockException = state.blocks().globalBlockedException(ClusterBlockLevel.WRITE); if (blockException != null) { if (blockException.retryable()) { logger.trace("cluster is blocked, scheduling a retry", blockException); retry(blockException); } else { onFailure(blockException); } return true; } return false; }
private boolean handleBlockExceptions(ClusterState state) { ClusterBlockException blockException = state.blocks().globalBlockedException(ClusterBlockLevel.WRITE); if (blockException != null) { if (blockException.retryable()) { logger.trace("cluster is blocked, scheduling a retry", blockException); retry(blockException); } else { onFailure(blockException); } return true; } return false; }
private boolean handleBlockExceptions(ClusterState state) { ClusterBlockException blockException = state.blocks().globalBlockedException(ClusterBlockLevel.WRITE); if (blockException != null) { if (blockException.retryable()) { logger.trace("cluster is blocked, scheduling a retry", blockException); retry(blockException); } else { onFailure(blockException); } return true; } return false; }
private boolean handleBlockExceptions(ClusterState state) { ClusterBlockException blockException = state.blocks().globalBlockedException(ClusterBlockLevel.WRITE); if (blockException != null) { if (blockException.retryable()) { logger.trace("cluster is blocked, scheduling a retry", blockException); retry(blockException); } else { onFailure(blockException); } return true; } return false; }