Package com.atlassian.jira.search
Interface IndexConsistencyChecker
- All Known Implementing Classes:
LuceneConsistencyChecker,OpenSearchConsistencyChecker
public interface IndexConsistencyChecker
Extracted from
IndexLifecycleManager to allow disabling index consistency
checks for OpenSearch.-
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated, for removal: This API element is subject to removal in a future version.boolean
-
Method Details
-
isIndexAvailable
Deprecated, for removal: This API element is subject to removal in a future version.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.
- Returns:
- Whether this index is available.
-
isIndexConsistent
boolean isIndexConsistent()- 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 thatfalseis also returned if the index is not available .
-