Interface RoutingChangesObserver
-
- All Known Implementing Classes:
IndexMetaDataUpdater,RestoreService.RestoreInProgressUpdater,RoutingChangesObserver.AbstractRoutingChangesObserver,RoutingChangesObserver.DelegatingRoutingChangesObserver,RoutingNodesChangedObserver
public interface RoutingChangesObserverRecords changes made toRoutingNodesduring an allocation round.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRoutingChangesObserver.AbstractRoutingChangesObserverAbstract implementation ofRoutingChangesObserverthat does not take any action.static classRoutingChangesObserver.DelegatingRoutingChangesObserver
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)Called when an initializing replica is reinitialized.voidrelocationCompleted(ShardRouting removedRelocationSource)Called on relocation source when relocation completes after relocation target is started.voidrelocationSourceRemoved(ShardRouting removedReplicaRelocationSource)Called on replica relocation target when replica relocation source fails.voidrelocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)Called when relocation of a started shard is initiated.voidreplicaPromoted(ShardRouting replicaShard)Called when started replica is promoted to primary.voidshardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)Called when a shard is failed or cancelled.voidshardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)Called when unassigned shard is initialized.voidshardStarted(ShardRouting initializingShard, ShardRouting startedShard)Called when an initializing shard is started.voidstartedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)Called on started primary shard after it has been promoted from replica to primary and is reinitialized due to shadow replicas.voidunassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)Called when an unassigned shard's unassigned information was updated
-
-
-
Method Detail
-
shardInitialized
void shardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard)
Called when unassigned shard is initialized. Does not include initializing relocation target shards.
-
shardStarted
void shardStarted(ShardRouting initializingShard, ShardRouting startedShard)
Called when an initializing shard is started.
-
relocationStarted
void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard)
Called when relocation of a started shard is initiated.
-
unassignedInfoUpdated
void unassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo)
Called when an unassigned shard's unassigned information was updated
-
shardFailed
void shardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo)
Called when a shard is failed or cancelled.
-
relocationCompleted
void relocationCompleted(ShardRouting removedRelocationSource)
Called on relocation source when relocation completes after relocation target is started.
-
relocationSourceRemoved
void relocationSourceRemoved(ShardRouting removedReplicaRelocationSource)
Called on replica relocation target when replica relocation source fails. Promotes the replica relocation target to ordinary initializing shard.
-
startedPrimaryReinitialized
void startedPrimaryReinitialized(ShardRouting startedPrimaryShard, ShardRouting initializedShard)
Called on started primary shard after it has been promoted from replica to primary and is reinitialized due to shadow replicas.
-
replicaPromoted
void replicaPromoted(ShardRouting replicaShard)
Called when started replica is promoted to primary.
-
initializedReplicaReinitialized
void initializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica)
Called when an initializing replica is reinitialized. This happens when a primary relocation completes, which reinitializes all currently initializing replicas as their recovery source node changes
-
-