java.lang.Object
org.elasticsearch.gateway.DanglingIndicesState
The dangling indices state is responsible for finding new dangling indices (indices that have
their state written on disk, but don't exists in the metadata of the cluster).
-
Constructor Summary
ConstructorDescriptionDanglingIndicesState
(MetaStateService metaStateService, ClusterService clusterService) -
Method Summary
Modifier and TypeMethodDescriptionFinds new dangling indices by iterating over the indices and trying to find indices that have state on disk, but are not part of the provided metadata.
-
Constructor Details
-
DanglingIndicesState
@Inject public DanglingIndicesState(MetaStateService metaStateService, ClusterService clusterService)
-
-
Method Details
-
getDanglingIndices
Finds new dangling indices by iterating over the indices and trying to find indices that have state on disk, but are not part of the provided metadata.- Returns:
- a map of currently-known dangling indices
-