/** * Remove the allocation id of the provided shard from the set of in-sync shard copies */ public void removeAllocationId(ShardRouting shardRouting) { indexMetaDataUpdater.removeAllocationId(shardRouting); }
@Override public void relocationCompleted(ShardRouting removedRelocationSource) { removeAllocationId(removedRelocationSource); }
/** * Remove the allocation id of the provided shard from the set of in-sync shard copies */ public void removeAllocationId(ShardRouting shardRouting) { indexMetaDataUpdater.removeAllocationId(shardRouting); }
/** * Remove the allocation id of the provided shard from the set of in-sync shard copies */ public void removeAllocationId(ShardRouting shardRouting) { indexMetaDataUpdater.removeAllocationId(shardRouting); }
@Override public void relocationCompleted(ShardRouting removedRelocationSource) { removeAllocationId(removedRelocationSource); }
@Override public void relocationCompleted(ShardRouting removedRelocationSource) { removeAllocationId(removedRelocationSource); }
@Override public void relocationCompleted(ShardRouting removedRelocationSource) { removeAllocationId(removedRelocationSource); }
@Override public void shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo) { if (failedShard.active() && unassignedInfo.getReason() != UnassignedInfo.Reason.NODE_LEFT) { removeAllocationId(failedShard); if (failedShard.primary()) { Updates updates = changes(failedShard.shardId()); if (updates.firstFailedPrimary == null) { // more than one primary can be failed (because of batching, primary can be failed, replica promoted and then failed...) updates.firstFailedPrimary = failedShard; } } } if (failedShard.active() && failedShard.primary()) { increasePrimaryTerm(failedShard.shardId()); } }