Class DanglingIndicesState

java.lang.Object
org.elasticsearch.gateway.DanglingIndicesState

public class DanglingIndicesState extends Object
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 Details

  • Method Details

    • getDanglingIndices

      public Map<Index,IndexMetadata> 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