Class OpenSearchConsistencyChecker

java.lang.Object
com.atlassian.jira.search.opensearch.OpenSearchConsistencyChecker
All Implemented Interfaces:
IndexConsistencyChecker

public class OpenSearchConsistencyChecker extends Object implements IndexConsistencyChecker
  • Constructor Details

    • OpenSearchConsistencyChecker

      public OpenSearchConsistencyChecker()
  • Method Details

    • isIndexAvailable

      public boolean isIndexAvailable()
      Description copied from interface: IndexConsistencyChecker
      Whether this index is available.

      The index is not available if the index is being rebuilt or recovered. In a clustered environment this reflects only the state on the local node.

      Specified by:
      isIndexAvailable in interface IndexConsistencyChecker
      Returns:
      Whether this index is available.
    • isIndexConsistent

      public boolean isIndexConsistent()
      Specified by:
      isIndexConsistent in interface IndexConsistencyChecker
      Returns:
      the result of a simple consistency check that compares the index state to the current number of issues. A background re-index should not be attempted when this returns false. Note that false is also returned if the index is not available .