Class OpenSearchRestTestCase
java.lang.Object
org.junit.Assert
org.apache.lucene.tests.util.LuceneTestCase
org.opensearch.test.OpenSearchTestCase
org.opensearch.test.rest.OpenSearchRestTestCase
- Direct Known Subclasses:
AbstractFullClusterRestartTestCase,JsonLogsIntegTestCase,OpenSearchClientYamlSuiteTestCase
Superclass for tests that interact with an external test cluster using OpenSearch's
RestClient.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classHelper class to check warnings in REST responses with sensitivity to versions used in the target cluster.Nested classes/interfaces inherited from class org.opensearch.test.OpenSearchTestCase
OpenSearchTestCase.AnnotatedFeatureFlagRule, OpenSearchTestCase.GeohashGenerator, OpenSearchTestCase.LockFeatureFlag, OpenSearchTestCase.TestAnalysisNested classes/interfaces inherited from class org.apache.lucene.tests.util.LuceneTestCase
org.apache.lucene.tests.util.LuceneTestCase.AwaitsFix, org.apache.lucene.tests.util.LuceneTestCase.Concurrency, org.apache.lucene.tests.util.LuceneTestCase.Monster, org.apache.lucene.tests.util.LuceneTestCase.Nightly, org.apache.lucene.tests.util.LuceneTestCase.SuppressCodecs, org.apache.lucene.tests.util.LuceneTestCase.SuppressFileSystems, org.apache.lucene.tests.util.LuceneTestCase.SuppressFsync, org.apache.lucene.tests.util.LuceneTestCase.SuppressReproduceLine, org.apache.lucene.tests.util.LuceneTestCase.SuppressSysoutChecks, org.apache.lucene.tests.util.LuceneTestCase.SuppressTempFileChecks, org.apache.lucene.tests.util.LuceneTestCase.ThrowingConsumer<T>, org.apache.lucene.tests.util.LuceneTestCase.ThrowingRunnable, org.apache.lucene.tests.util.LuceneTestCase.Weekly -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.opensearch.test.OpenSearchTestCase
checkIndexFailures, DEFAULT_NAMED_WRITABLE_REGISTRY, DEFAULT_TEST_WORKER_ID, failureAndSuccessEvents, flagLockRule, JAVA_TIMEZONE_IDS, JAVA_ZONE_IDS, JODA_TIMEZONE_IDS, logger, TEST_WORKER_SYS_PROPERTY, TEST_WORKER_VM_IDFields inherited from class org.apache.lucene.tests.util.LuceneTestCase
assertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_MONSTER, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_THROTTLING, TEST_WEEKLY, VERBOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.opensearch.client.RestClientGet the client used for test administrative actions.protected static booleanaliasExists(String alias) protected static booleanaliasExists(String index, String alias) static org.opensearch.client.RequestOptionsDeprecated.this method is only required while we deprecate types and can be removed in 8.0voidassertEmptyTranslog(String index) Asserts that we do not retain any extra translog for the given index (i.e., turn off the translog retention)voidassertNoFileBasedRecovery(String indexName, Predicate<String> targetNode) Asserts that replicas on nodes satisfying thetargetNodeshould have perform operation-based recoveries.protected static voidassertOK(org.opensearch.client.Response response) protected org.opensearch.client.RestClientbuildClient(org.opensearch.common.settings.Settings settings, org.apache.hc.core5.http.HttpHost[] hosts) protected org.apache.hc.core5.http.HttpHostbuildHttpHost(String host, int port) Construct an HttpHost from the given host and portfinal voidClean up after the test case.protected static org.opensearch.client.RestClientclient()Get the client used for ordinary api calls while writing a teststatic voidprotected static voidcloseIndex(String index) protected static voidconfigureClient(org.opensearch.client.RestClientBuilder builder, org.opensearch.common.settings.Settings settings) protected static voidcreateIndex(String name, org.opensearch.common.settings.Settings settings) protected static voidcreateIndex(String name, org.opensearch.common.settings.Settings settings, String mapping) protected static voidcreateIndex(String name, org.opensearch.common.settings.Settings settings, String mapping, String aliases) protected static voidcreateSnapshot(String repository, String snapshot, boolean waitForCompletion) protected static voiddeleteIndex(String name) protected voiddeleteRepository(String repoName) static voidensureGreen(String index) checks that the specific index is green.protected static voidensureHealth(String index, Consumer<org.opensearch.client.Request> requestConsumer) protected static voidensureHealth(Consumer<org.opensearch.client.Request> requestConsumer) protected static voidensureHealth(org.opensearch.client.RestClient client, String index, Consumer<org.opensearch.client.Request> requestConsumer) protected static voidwaits until all shard initialization is completed.voidPeer recovery retention leases are renewed and synced to replicas periodically (every 30 seconds).entityAsList(org.opensearch.client.Response response) Convert the entity from aResponseinto a list of maps.entityAsMap(org.opensearch.client.Response response) Convert the entity from aResponseinto a map of maps.protected static voidexpectSoftDeletesWarning(org.opensearch.client.Request request, String indexName) static org.opensearch.client.RequestOptionsexpectVersionSpecificWarnings(Consumer<OpenSearchRestTestCase.VersionSensitiveWarningsHandler> expectationsSetter) static org.opensearch.client.RequestOptionsexpectWarnings(String... warnings) Creates request options designed to be used when making a call that can return warnings, for example a deprecated request.static org.opensearch.client.RequestOptionsexpectWarningsOnce(String deprecationWarning) Filters out already asserted warnings and calls expectWarnings method.voidprotected final List<org.apache.hc.core5.http.HttpHost> Get the list of hosts in the cluster.getIndexSettings(String index) getIndexSettingsAsMap(String index) protected StringOverride this to switch to testing https.protected Stringprotected static booleanindexExists(String index) voidprotected static org.opensearch.VersionReturns the minimum node version among all nodes of the clusterprotected static voidprotected booleanControls whether or not to preserve cluster settings upon completion of the test.protected booleanReturns whether to preserve the state of the cluster upon completion of this test.protected booleanDetermines if data streams are preserved upon completion of this test.protected booleanReturns whether to preserve the indices created during this test on completion of this test.protected booleanReturns whether to preserve the repositories on completion of this test.protected booleanReturns whether to preserve SLM Policies of this test.protected booleanReturns whether to preserve the snapshots in repositories on completion of this test.protected booleanControls whether or not to preserve templates upon completion of this test.protected voidprotected static voidregisterRepository(String repository, String type, boolean verify, org.opensearch.common.settings.Settings settings) responseAsMap(org.opensearch.client.Response response) protected org.opensearch.common.settings.SettingsReturns the REST client settings used for admin actions like cleaning up after the test has completed.protected org.opensearch.common.settings.SettingsUsed to obtain settings for the REST client that is used to send REST requests.protected static voidrestoreSnapshot(String repository, String snapshot, boolean waitForCompletion) protected voidsyncedFlush(String indexName, boolean retryOnConflict) protected static voidupdateIndexSettings(String index, org.opensearch.common.settings.Settings.Builder settings) protected static voiduseIgnoreMultipleMatchingTemplatesWarningsHandler(org.opensearch.client.Request request) protected booleanReturns whether to wait to make absolutely certain that all snapshots have been deleted.static voidwaitForPendingTasks(org.opensearch.client.RestClient adminClient) Wait for outstanding tasks to complete.static voidwaitForPendingTasks(org.opensearch.client.RestClient adminClient, Predicate<String> taskFilter) Wait for outstanding tasks to complete.protected static voidprotected static voidWipe fs snapshots we created one by one and all repositories so that the next test can create the repositories fresh and they'll start empty.Methods inherited from class org.opensearch.test.OpenSearchTestCase
after, afterIfFailed, afterIfSuccessful, allowedWarnings, assertArrayEquals, assertBusy, assertBusy, assertBusyWithFixedSleepTime, assertEquals, assertNoDeprecationWarnings, assertSettingDeprecationsAndWarnings, assertSettingDeprecationsAndWarnings, assertWarnings, assertWarnings, before, between, buildEnvSettings, buildNewFakeTransportAddress, checkStaticState, clearAdditionalRoles, copyInstance, copyNamedWriteable, copyNamedWriteable, copyWriteable, copyWriteable, createDefaultIndexAnalyzers, createParser, createParser, createParser, createParser, createParser, createParser, createTestAnalysis, createTestAnalysis, createTestAnalysis, enableJodaDeprecationWarningsCheck, enableWarningsCheck, ensureAllSearchContextsReleased, ensureCheckIndexPassed, ensureSupportedLocale, frequently, generateRandomStringArray, generateRandomStringArray, getBasePort, getBasePort, getDataPath, getPortRange, getShardLevelBlobPath, getSuiteFailureMarker, getTestTransportPlugin, getTestTransportType, inFipsJvm, iterations, maybeSet, mockScript, newNodeEnvironment, newNodeEnvironment, persistedStateRegistry, randomAlphaOfLength, randomAlphaOfLengthBetween, randomArray, randomArray, randomBigInteger, randomBoolean, randomByte, randomByteArrayOfLength, randomDateFormatterPattern, randomDateTimeZone, randomDouble, randomDoubleBetween, randomFloat, randomFrom, randomFrom, randomFrom, randomFrom, randomFrom, randomGeohash, randomInt, randomInt, randomIntBetween, randomIp, randomList, randomList, randomLong, randomLongBetween, randomNonNegativeInt, randomNonNegativeLong, randomPositiveTimeValue, randomRealisticUnicodeOfCodepointLength, randomRealisticUnicodeOfCodepointLengthBetween, randomRealisticUnicodeOfLength, randomRealisticUnicodeOfLengthBetween, randomShort, randomSubsetOf, randomSubsetOf, randomSubsetOf, randomTimeValue, randomTimeValue, randomTimeValue, randomTimeZone, randomUnicodeOfCodepointLength, randomUnicodeOfCodepointLengthBetween, randomUnicodeOfLength, randomUnicodeOfLengthBetween, randomUnique, randomUnsignedLong, randomValueOtherThan, randomValueOtherThanMany, randomZone, remoteIndexSettings, removeHeaderWarningAppender, replaceUnicodeControlCharacters, replaceUnicodeControlCharacters, resetCheckIndexStatus, resetPortCounter, restoreContentType, restoreFileSystem, scaledRandomIntBetween, setContentType, setFileSystem, setHeaderWarningAppender, settings, shuffleMap, shuffleXContent, shuffleXContent, spinForAtLeastNMilliseconds, spinForAtLeastOneMillisecond, tearDown, terminate, terminate, tmpPaths, toShuffledXContent, toShuffledXContent, waitUntil, waitUntil, warmIndexSettings, writableRegistry, xContentRegistryMethods inherited from class org.apache.lucene.tests.util.LuceneTestCase
addVirusChecker, assertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertDoubleUlpEquals, assertFieldInfosEquals, assertFloatUlpEquals, assertNormsEquals, assertPointsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, assertThat, assertThat, asSet, assumeFalse, assumeNoException, assumeTrue, atLeast, atLeast, callStackContains, callStackContains, callStackContainsAnyOf, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, ensureSaneIWCOnNightly, expectThrows, expectThrows, expectThrows, expectThrowsAnyOf, expectThrowsAnyOf, getDataInputStream, getJvmForkArguments, getOnlyLeafReader, getTestClass, getTestName, isTestThread, localeForLanguageTag, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newBytesRef, newBytesRef, newBytesRef, newBytesRef, newBytesRef, newBytesRef, newDirectory, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMaybeVirusCheckingDirectory, newMaybeVirusCheckingFSDirectory, newMergePolicy, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockDirectory, newMockFSDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newSearcher, newSearcher, newSnapshotIndexWriterConfig, newStringField, newStringField, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, overrideDefaultQueryCache, overrideTestDefaultQueryCache, random, randomLocale, randomTimeZone, randomVectorFormat, rarely, rarely, replaceMaxFailureRule, resetDefaultQueryCache, restoreCPUCoreCount, restoreIndexWriterMaxDocs, runWithRestrictedPermissions, setIndexWriterMaxDocs, setUp, setupCPUCoreCount, setUpExecutorService, shutdownExecutorService, slowFileExists, usually, usually, wrapReaderMethods inherited from class org.junit.Assert
assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertArrayEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertThrows, assertThrows, assertTrue, assertTrue, fail, fail
-
Field Details
-
TRUSTSTORE_PATH
- See Also:
-
TRUSTSTORE_PASSWORD
- See Also:
-
CLIENT_SOCKET_TIMEOUT
- See Also:
-
CLIENT_PATH_PREFIX
- See Also:
-
-
Constructor Details
-
OpenSearchRestTestCase
public OpenSearchRestTestCase()
-
-
Method Details
-
entityAsMap
public static Map<String,Object> entityAsMap(org.opensearch.client.Response response) throws IOException Convert the entity from aResponseinto a map of maps.- Throws:
IOException
-
entityAsList
Convert the entity from aResponseinto a list of maps.- Throws:
IOException
-
initClient
- Throws:
IOException
-
getTestRestCluster
-
expectVersionSpecificWarnings
public static org.opensearch.client.RequestOptions expectVersionSpecificWarnings(Consumer<OpenSearchRestTestCase.VersionSensitiveWarningsHandler> expectationsSetter) -
expectWarnings
Creates request options designed to be used when making a call that can return warnings, for example a deprecated request. The options will ensure that the given warnings are returned if all nodes are onVersion.CURRENTand will allow (but not require) the warnings if any node is running an older version.- Parameters:
warnings- The expected warnings.
-
expectWarningsOnce
Filters out already asserted warnings and calls expectWarnings method.- Parameters:
deprecationWarning- expected warning
-
allowTypesRemovalWarnings
Deprecated.this method is only required while we deprecate types and can be removed in 8.0Creates RequestOptions designed to ignore [types removal] warnings but nothing else -
buildHttpHost
Construct an HttpHost from the given host and port -
cleanUpCluster
-
closeClients
- Throws:
IOException
-
client
protected static org.opensearch.client.RestClient client()Get the client used for ordinary api calls while writing a test -
adminClient
protected static org.opensearch.client.RestClient adminClient()Get the client used for test administrative actions. Do not use this while writing a test. Only use it for cleaning up after tests. -
waitForPendingTasks
public static void waitForPendingTasks(org.opensearch.client.RestClient adminClient) throws Exception Wait for outstanding tasks to complete. The specified admin client is used to check the outstanding tasks and this is done usingOpenSearchTestCase.assertBusy(CheckedRunnable)to give a chance to any outstanding tasks to complete.- Parameters:
adminClient- the admin client- Throws:
Exception- if an exception is thrown while checking the outstanding tasks
-
waitForPendingTasks
public static void waitForPendingTasks(org.opensearch.client.RestClient adminClient, Predicate<String> taskFilter) throws Exception Wait for outstanding tasks to complete. The specified admin client is used to check the outstanding tasks and this is done usingOpenSearchTestCase.assertBusy(CheckedRunnable)to give a chance to any outstanding tasks to complete. The specified filter is used to filter out outstanding tasks that are expected to be there.- Parameters:
adminClient- the admin clienttaskFilter- predicate used to filter tasks that are expected to be there- Throws:
Exception- if an exception is thrown while checking the outstanding tasks
-
preserveClusterUponCompletion
protected boolean preserveClusterUponCompletion()Returns whether to preserve the state of the cluster upon completion of this test. Defaults to false. If true, overrides the value ofpreserveIndicesUponCompletion(),preserveTemplatesUponCompletion(),preserveReposUponCompletion(), andpreserveSnapshotsUponCompletion().- Returns:
- true if the state of the cluster should be preserved
-
preserveIndicesUponCompletion
protected boolean preserveIndicesUponCompletion()Returns whether to preserve the indices created during this test on completion of this test. Defaults tofalse. Override this method if indices should be preserved after the test, with the assumption that some other process or test will clean up the indices afterward. This is useful if the data directory and indices need to be preserved between test runs (for example, when testing rolling upgrades). -
preserveTemplatesUponCompletion
protected boolean preserveTemplatesUponCompletion()Controls whether or not to preserve templates upon completion of this test. The default implementation is to delete not preserve templates.- Returns:
- whether or not to preserve templates
-
preserveDataStreamsUponCompletion
protected boolean preserveDataStreamsUponCompletion()Determines if data streams are preserved upon completion of this test. The default implementation wipes data streams.- Returns:
- whether or not to preserve data streams
-
preserveClusterSettings
protected boolean preserveClusterSettings()Controls whether or not to preserve cluster settings upon completion of the test. The default implementation is to remove all cluster settings.- Returns:
- true if cluster settings should be preserved and otherwise false
-
preserveReposUponCompletion
protected boolean preserveReposUponCompletion()Returns whether to preserve the repositories on completion of this test. Defaults to not preserving repos. See alsopreserveSnapshotsUponCompletion(). -
preserveSnapshotsUponCompletion
protected boolean preserveSnapshotsUponCompletion()Returns whether to preserve the snapshots in repositories on completion of this test. Defaults to not preserving snapshots. Only works forfsrepositories. -
preserveSLMPoliciesUponCompletion
protected boolean preserveSLMPoliciesUponCompletion()Returns whether to preserve SLM Policies of this test. Defaults to not preserving them. Only runs at all if xpack is installed on the cluster being tested. -
waitForAllSnapshotsWiped
protected boolean waitForAllSnapshotsWiped()Returns whether to wait to make absolutely certain that all snapshots have been deleted. -
wipeAllIndices
- Throws:
IOException
-
wipeDataStreams
- Throws:
IOException
-
wipeSnapshots
Wipe fs snapshots we created one by one and all repositories so that the next test can create the repositories fresh and they'll start empty. There isn't an API to delete all snapshots. There is an API to delete all snapshot repositories but that leaves all of the snapshots intact in the repository.- Returns:
- Map of repository name to list of snapshots found in unfinished state
- Throws:
IOException
-
deleteRepository
- Throws:
IOException
-
refreshAllIndices
- Throws:
IOException
-
restClientSettings
protected org.opensearch.common.settings.Settings restClientSettings()Used to obtain settings for the REST client that is used to send REST requests. -
restAdminSettings
protected org.opensearch.common.settings.Settings restAdminSettings()Returns the REST client settings used for admin actions like cleaning up after the test has completed. -
getClusterHosts
Get the list of hosts in the cluster. -
getProtocol
Override this to switch to testing https. -
buildClient
protected org.opensearch.client.RestClient buildClient(org.opensearch.common.settings.Settings settings, org.apache.hc.core5.http.HttpHost[] hosts) throws IOException - Throws:
IOException
-
configureClient
protected static void configureClient(org.opensearch.client.RestClientBuilder builder, org.opensearch.common.settings.Settings settings) throws IOException - Throws:
IOException
-
assertOK
protected static void assertOK(org.opensearch.client.Response response) -
ensureGreen
checks that the specific index is green. we force a selection of an index as the tests share a cluster and often leave indices in an non green state- Parameters:
index- index to test for- Throws:
IOException
-
ensureHealth
protected static void ensureHealth(Consumer<org.opensearch.client.Request> requestConsumer) throws IOException - Throws:
IOException
-
ensureHealth
protected static void ensureHealth(String index, Consumer<org.opensearch.client.Request> requestConsumer) throws IOException - Throws:
IOException
-
ensureHealth
protected static void ensureHealth(org.opensearch.client.RestClient client, String index, Consumer<org.opensearch.client.Request> requestConsumer) throws IOException - Throws:
IOException
-
ensureNoInitializingShards
waits until all shard initialization is completed. This is a handy alternative to ensureGreen as it relates to all shards in the cluster and doesn't require to know how many nodes/replica there are.- Throws:
IOException
-
createIndex
protected static void createIndex(String name, org.opensearch.common.settings.Settings settings) throws IOException - Throws:
IOException
-
createIndex
protected static void createIndex(String name, org.opensearch.common.settings.Settings settings, String mapping) throws IOException - Throws:
IOException
-
createIndex
protected static void createIndex(String name, org.opensearch.common.settings.Settings settings, String mapping, String aliases) throws IOException - Throws:
IOException
-
deleteIndex
- Throws:
IOException
-
updateIndexSettings
protected static void updateIndexSettings(String index, org.opensearch.common.settings.Settings.Builder settings) throws IOException - Throws:
IOException
-
expectSoftDeletesWarning
protected static void expectSoftDeletesWarning(org.opensearch.client.Request request, String indexName) -
getIndexSettings
- Throws:
IOException
-
getIndexSettingsAsMap
- Throws:
IOException
-
indexExists
- Throws:
IOException
-
closeIndex
- Throws:
IOException
-
openIndex
- Throws:
IOException
-
aliasExists
- Throws:
IOException
-
aliasExists
- Throws:
IOException
-
getAlias
- Throws:
IOException
-
getAsMap
- Throws:
IOException
-
responseAsMap
protected static Map<String,Object> responseAsMap(org.opensearch.client.Response response) throws IOException - Throws:
IOException
-
registerRepository
protected static void registerRepository(String repository, String type, boolean verify, org.opensearch.common.settings.Settings settings) throws IOException - Throws:
IOException
-
createSnapshot
protected static void createSnapshot(String repository, String snapshot, boolean waitForCompletion) throws IOException - Throws:
IOException
-
restoreSnapshot
protected static void restoreSnapshot(String repository, String snapshot, boolean waitForCompletion) throws IOException - Throws:
IOException
-
flush
- Throws:
IOException
-
assertNoFileBasedRecovery
public void assertNoFileBasedRecovery(String indexName, Predicate<String> targetNode) throws IOException Asserts that replicas on nodes satisfying thetargetNodeshould have perform operation-based recoveries.- Throws:
IOException
-
assertEmptyTranslog
-
ensurePeerRecoveryRetentionLeasesRenewedAndSynced
Peer recovery retention leases are renewed and synced to replicas periodically (every 30 seconds). This ensures that we have renewed every PRRL to the global checkpoint of the corresponding copy and properly synced to all copies.- Throws:
Exception
-
minimumNodeVersion
Returns the minimum node version among all nodes of the cluster- Throws:
IOException
-
syncedFlush
-
useIgnoreMultipleMatchingTemplatesWarningsHandler
protected static void useIgnoreMultipleMatchingTemplatesWarningsHandler(org.opensearch.client.Request request) throws IOException - Throws:
IOException
-