Class IndexMetadataUpdater

All Implemented Interfaces:
RoutingChangesObserver

public class IndexMetadataUpdater extends RoutingChangesObserver.AbstractRoutingChangesObserver
Observer that tracks changes made to RoutingNodes in order to update the primary terms and in-sync allocation ids in IndexMetadata once the allocation round has completed. Primary terms are updated on primary initialization or when an active primary fails. Allocation ids are added for shards that become active and removed for shards that stop being active.