Class OpenSearchReplicatedIndexOperationConsistencyChecker
java.lang.Object
com.atlassian.jira.search.opensearch.OpenSearchReplicatedIndexOperationConsistencyChecker
- All Implemented Interfaces:
ReplicatedIndexOperationConsistencyChecker
public class OpenSearchReplicatedIndexOperationConsistencyChecker
extends Object
implements ReplicatedIndexOperationConsistencyChecker
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchReplicatedIndexOperationConsistencyChecker(org.opensearch.client.opensearch.OpenSearchClient openSearchClient, JiraProperties jiraProperties, io.github.resilience4j.retry.RetryRegistry retryRegistry) -
Method Summary
Modifier and TypeMethodDescriptiongetUnappliedOperations(Collection<EntityWithOperation> operations, IndexAccessor indexAccessor) Checks for RIO operations which have not been applied to the index yet.
-
Constructor Details
-
OpenSearchReplicatedIndexOperationConsistencyChecker
public OpenSearchReplicatedIndexOperationConsistencyChecker(org.opensearch.client.opensearch.OpenSearchClient openSearchClient, JiraProperties jiraProperties, io.github.resilience4j.retry.RetryRegistry retryRegistry)
-
-
Method Details
-
getUnappliedOperations
public List<EntityWithOperation> getUnappliedOperations(Collection<EntityWithOperation> operations, IndexAccessor indexAccessor) throws OpenSearchSearchException Description copied from interface:ReplicatedIndexOperationConsistencyCheckerChecks for RIO operations which have not been applied to the index yet.- Specified by:
getUnappliedOperationsin interfaceReplicatedIndexOperationConsistencyChecker- Parameters:
operations- the list of operations to checkindexAccessor- the index accessor to use for checking the index- Returns:
- a list of operations that are missing from the index
- Throws:
OpenSearchSearchException
-