Class IndexMetaDataUpdater

java.lang.Object
org.elasticsearch.cluster.routing.RoutingChangesObserver.AbstractRoutingChangesObserver
org.elasticsearch.cluster.routing.allocation.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.