Module org.elasticsearch.server
Interface RoutingChangesObserver
- All Known Implementing Classes:
IndexMetadataUpdater,ResizeSourceIndexSettingsUpdater,RestoreService.RestoreInProgressUpdater,RoutingChangesObserver.DelegatingRoutingChangesObserver,RoutingNodesChangedObserver,ShardChangesObserver
public interface RoutingChangesObserver
Records changes made to
RoutingNodes during an allocation round.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptiondefault voidinitializedReplicaReinitialized(ShardRouting oldReplica, ShardRouting reinitializedReplica) Called when an initializing replica is reinitialized.default voidrelocationCompleted(ShardRouting removedRelocationSource) Called on relocation source when relocation completes after relocation target is started.default voidrelocationFailureInfoUpdated(ShardRouting relocatedShard, RelocationFailureInfo relocationFailureInfo) Called when a relocating shard's failure information was updateddefault voidrelocationSourceRemoved(ShardRouting removedReplicaRelocationSource) Called on replica relocation target when replica relocation source fails.default voidrelocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard, String reason) Called when relocation of a started shard is initiated.default voidreplicaPromoted(ShardRouting replicaShard) Called when started replica is promoted to primary.default voidshardFailed(ShardRouting failedShard, UnassignedInfo unassignedInfo) Called when a shard is failed or cancelled.default voidshardInitialized(ShardRouting unassignedShard, ShardRouting initializedShard) Called when unassigned shard is initialized.default voidshardStarted(ShardRouting initializingShard, ShardRouting startedShard) Called when an initializing shard is started.default voidunassignedInfoUpdated(ShardRouting unassignedShard, UnassignedInfo newUnassignedInfo) Called when an unassigned shard's unassigned information was updated
-
Method Details
-
shardInitialized
Called when unassigned shard is initialized. Does not include initializing relocation target shards. -
shardStarted
Called when an initializing shard is started. -
relocationStarted
default void relocationStarted(ShardRouting startedShard, ShardRouting targetRelocatingShard, String reason) Called when relocation of a started shard is initiated. -
unassignedInfoUpdated
Called when an unassigned shard's unassigned information was updated -
relocationFailureInfoUpdated
default void relocationFailureInfoUpdated(ShardRouting relocatedShard, RelocationFailureInfo relocationFailureInfo) Called when a relocating shard's failure information was updated -
shardFailed
Called when a shard is failed or cancelled. -
relocationCompleted
Called on relocation source when relocation completes after relocation target is started. -
relocationSourceRemoved
Called on replica relocation target when replica relocation source fails. Promotes the replica relocation target to ordinary initializing shard. -
replicaPromoted
Called when started replica is promoted to primary. -
initializedReplicaReinitialized
default 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
-