if ((e.getCause() instanceof IndexShardClosedException) || (e.getCause() instanceof IndexShardNotStartedException)) { throw new IndexShardRecoveryException(shardId, "failed recovery", e);
public IndexShardRecoveryException(ShardId shardId, String msg, Throwable cause) { super(msg, cause); setShard(shardId); }
private boolean canRecover(IndexShard indexShard) { if (indexShard.state() == IndexShardState.CLOSED) { // got closed on us, just ignore this recovery return false; } if (indexShard.routingEntry().primary() == false) { throw new IndexShardRecoveryException(shardId, "Trying to recover when the shard is in backup state", null); } return true; }
false, false); } catch (IOException ex) { throw new IndexShardRecoveryException(indexShard.shardId(), "failed to recover from local shards", ex);
if ((e.getCause() instanceof IndexShardClosedException) || (e.getCause() instanceof IndexShardNotStartedException)) { throw new IndexShardRecoveryException(shardId, "failed recovery", e);
throw new IndexShardRecoveryException(shardId, "shard allocated for local recovery (post api), should exist, but doesn't, current files: " + files, e); throw new IndexShardRecoveryException(shardId, "failed to fetch index version after copying it over", e); indexShard.postRecovery("post recovery from shard_store"); } catch (EngineException | IOException e) { throw new IndexShardRecoveryException(shardId, "failed to recover from gateway", e); } finally { store.decRef();
public IndexShardRecoveryException(ShardId shardId, String msg, Throwable cause) { super(msg, cause); setShard(shardId); }
if ((e.getCause() instanceof IndexShardClosedException) || (e.getCause() instanceof IndexShardNotStartedException)) { throw new IndexShardRecoveryException(shardId, "failed recovery", e);
@Override public void run() throws InterruptedException { try { if (latch.await(waitForMappingUpdatePostRecovery.millis(), TimeUnit.MILLISECONDS) == false) { logger.debug("waited for mapping update on master for [{}], yet timed out", type); } else { if (error.get() != null) { throw new IndexShardRecoveryException(shardId, "Failed to propagate mappings on master post recovery", error.get()); } } } catch (InterruptedException e) { logger.debug("interrupted while waiting for mapping update"); throw e; } } });
public IndexShardRecoveryException(ShardId shardId, String msg, Throwable cause) { super(msg, cause); setShard(shardId); }
if ((e.getCause() instanceof IndexShardClosedException) || (e.getCause() instanceof IndexShardNotStartedException)) { throw new IndexShardRecoveryException(shardId, "failed recovery", e);
private boolean canRecover(IndexShard indexShard) { if (indexShard.state() == IndexShardState.CLOSED) { // got closed on us, just ignore this recovery return false; } if (indexShard.routingEntry().primary() == false) { throw new IndexShardRecoveryException(shardId, "Trying to recover when the shard is in backup state", null); } return true; }
public IndexShardRecoveryException(ShardId shardId, String msg, Throwable cause) { super(msg, cause); setShard(shardId); }
return; if ((e.getCause() instanceof IndexShardClosedException) || (e.getCause() instanceof IndexShardNotStartedException)) { return; listener.onRecoveryFailed(new IndexShardRecoveryException(shardId, "failed recovery", e));
private boolean canRecover(IndexShard indexShard) { if (indexShard.state() == IndexShardState.CLOSED) { // got closed on us, just ignore this recovery return false; } if (!indexShard.routingEntry().primary()) { throw new IndexShardRecoveryException(shardId, "Trying to recover when the shard is in backup state", null); } return true; }
public IndexShardRecoveryException(ShardId shardId, String msg, Throwable cause) { super(msg, cause); setShard(shardId); }
private boolean canRecover(IndexShard indexShard) { if (indexShard.state() == IndexShardState.CLOSED) { // got closed on us, just ignore this recovery return false; } if (indexShard.routingEntry().primary() == false) { throw new IndexShardRecoveryException(shardId, "Trying to recover when the shard is in backup state", null); } return true; }
throw new IndexShardRecoveryException(indexShard.shardId(), "failed to recover from local shards", ex);
throw new IndexShardRecoveryException(indexShard.shardId(), "failed to recover from local shards", ex);
throw new IndexShardRecoveryException(indexShard.shardId(), "failed to recover from local shards", ex);