primaryTerm
protected long primaryTerm
OpenSearchIndexLevelReplicationTestCaseIndexShard instances easily,
containing utilities for shard creation and recoveries. See {newShard(boolean)} and
newStartedShard() for a good starting pointsOpenSearchTestCase.AnnotatedFeatureFlagRule, OpenSearchTestCase.GeohashGenerator, OpenSearchTestCase.LockFeatureFlag, OpenSearchTestCase.TestAnalysisorg.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.Weeklyprotected org.opensearch.cluster.service.ClusterServiceprotected static AtomicLongstatic final org.opensearch.index.shard.IndexEventListenerprotected longprotected static final org.opensearch.indices.replication.common.ReplicationListenerprotected org.opensearch.threadpool.ThreadPoolcheckIndexFailures, 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_IDassertsAreEnabled, 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, VERBOSEprotected org.opensearch.common.lease.ReleasableacquirePrimaryOperationPermitBlockingly(org.opensearch.index.shard.IndexShard indexShard) protected voidstatic voidassertConsistentHistoryBetweenTranslogAndLucene(org.opensearch.index.shard.IndexShard shard) protected voidassertDocCount(org.opensearch.index.shard.IndexShard shard,
int docDount) protected voidassertDocs(org.opensearch.index.shard.IndexShard shard,
String... ids) protected voidcloseShard(org.opensearch.index.shard.IndexShard shard,
boolean assertConsistencyBetweenTranslogAndLucene) protected voidcloseShards(Iterable<org.opensearch.index.shard.IndexShard> shards) protected voidcloseShards(org.opensearch.index.shard.IndexShard... shards) protected org.opensearch.index.store.RemoteSegmentStoreDirectorycreateRemoteSegmentStoreDirectory(org.opensearch.core.index.shard.ShardId shardId,
Path path) protected org.opensearch.index.store.StorecreateRemoteStore(Path path,
org.opensearch.cluster.routing.ShardRouting shardRouting,
org.opensearch.cluster.metadata.IndexMetadata metadata,
org.opensearch.index.shard.ShardPath shardPath) protected org.opensearch.repositories.RepositoriesServiceprotected org.opensearch.index.store.StorecreateStore(org.opensearch.core.index.shard.ShardId shardId,
org.opensearch.index.IndexSettings indexSettings,
org.apache.lucene.store.Directory directory,
org.opensearch.index.shard.ShardPath shardPath) protected org.opensearch.index.store.StorecreateStore(org.opensearch.index.IndexSettings indexSettings,
org.opensearch.index.shard.ShardPath shardPath) static org.opensearch.index.engine.Engine.WarmercreateTestWarmer(org.opensearch.index.IndexSettings indexSettings) protected org.opensearch.index.engine.Engine.DeleteResultprotected voidprotected voidflushShard(org.opensearch.index.shard.IndexShard shard) protected voidflushShard(org.opensearch.index.shard.IndexShard shard,
boolean force) protected org.opensearch.common.blobstore.BlobContainerstatic List<DocIdSeqNoAndSource> getDocIdAndSeqNos(org.opensearch.index.shard.IndexShard shard) static org.opensearch.index.engine.EnginegetEngine(org.opensearch.index.shard.IndexShard indexShard) org.opensearch.indices.replication.SegmentReplicationTargetService.SegmentReplicationListenergetMergedSegmentTargetListener(org.opensearch.index.shard.IndexShard primaryShard,
org.opensearch.index.shard.IndexShard replicaShard,
Map<String, org.opensearch.index.store.StoreFileMetadata> primaryMetadata,
CountDownLatch latch) Function<List<org.opensearch.index.shard.IndexShard>, List<org.opensearch.indices.replication.SegmentReplicationTarget>> getReplicationFunc(org.opensearch.index.shard.IndexShard target) static org.opensearch.index.seqno.ReplicationTrackergetReplicationTracker(org.opensearch.index.shard.IndexShard indexShard) org.opensearch.indices.replication.SegmentReplicationSourcegetSegmentReplicationSource(org.opensearch.index.shard.IndexShard primaryShard,
Function<Long, org.opensearch.indices.replication.common.ReplicationCollection.ReplicationRef<org.opensearch.indices.replication.SegmentReplicationTarget>> getTargetFunc,
Function<Long, org.opensearch.indices.replication.common.ReplicationCollection.ReplicationRef<org.opensearch.indices.replication.MergedSegmentReplicationTarget>> getMergedSegmentTargetFunc,
Consumer<org.opensearch.index.shard.IndexShard> postGetFilesRunnable) getShardDocUIDs(org.opensearch.index.shard.IndexShard shard) org.opensearch.indices.replication.SegmentReplicationTargetService.SegmentReplicationListenergetTargetListener(org.opensearch.index.shard.IndexShard primaryShard,
org.opensearch.index.shard.IndexShard replicaShard,
Map<String, org.opensearch.index.store.StoreFileMetadata> primaryMetadata,
CountDownLatch latch) static org.opensearch.index.translog.TransloggetTranslog(org.opensearch.index.shard.IndexShard shard) protected org.opensearch.index.engine.Engine.IndexResultprotected org.opensearch.index.engine.Engine.IndexResultprotected org.opensearch.index.engine.Engine.IndexResultindexDoc(org.opensearch.index.shard.IndexShard shard,
String id,
String source,
org.opensearch.core.xcontent.MediaType mediaType,
String routing) protected org.opensearch.index.shard.IndexShardnewShard(boolean primary) protected org.opensearch.index.shard.IndexShardnewShard(boolean primary,
org.opensearch.common.settings.Settings settings) protected org.opensearch.index.shard.IndexShardnewShard(boolean primary,
org.opensearch.common.settings.Settings settings,
org.opensearch.index.engine.EngineFactory engineFactory) protected org.opensearch.index.shard.IndexShardnewShard(boolean primary,
org.opensearch.indices.replication.checkpoint.SegmentReplicationCheckpointPublisher checkpointPublisher) protected org.opensearch.index.shard.IndexShardnewShard(boolean primary,
org.opensearch.indices.replication.checkpoint.SegmentReplicationCheckpointPublisher checkpointPublisher,
org.opensearch.common.settings.Settings settings) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting routing,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.common.CheckedFunction<org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.DirectoryReader, IOException> indexReaderWrapper,
org.opensearch.index.engine.EngineFactory engineFactory,
Runnable globalCheckpointSyncer,
org.opensearch.index.seqno.RetentionLeaseSyncer retentionLeaseSyncer,
Path path,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting routing,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.common.CheckedFunction<org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.DirectoryReader, IOException> indexReaderWrapper,
org.opensearch.index.engine.EngineFactory engineFactory,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting shardRouting,
org.opensearch.common.settings.Settings settings,
org.opensearch.index.engine.EngineFactory engineFactory,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting shardRouting,
org.opensearch.common.settings.Settings settings,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting shardRouting,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting routing,
org.opensearch.index.shard.ShardPath shardPath,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.common.CheckedFunction<org.opensearch.index.IndexSettings, org.opensearch.index.store.Store, IOException> storeProvider,
org.opensearch.common.CheckedFunction<org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.DirectoryReader, IOException> indexReaderWrapper,
org.opensearch.index.engine.EngineFactory engineFactory,
org.opensearch.index.engine.EngineConfigFactory engineConfigFactory,
Runnable globalCheckpointSyncer,
org.opensearch.index.seqno.RetentionLeaseSyncer retentionLeaseSyncer,
org.opensearch.index.shard.IndexEventListener indexEventListener,
Path remotePath,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.cluster.routing.ShardRouting routing,
org.opensearch.index.shard.ShardPath shardPath,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.common.CheckedFunction<org.opensearch.index.IndexSettings, org.opensearch.index.store.Store, IOException> storeProvider,
org.opensearch.common.CheckedFunction<org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.DirectoryReader, IOException> indexReaderWrapper,
org.opensearch.index.engine.EngineFactory engineFactory,
org.opensearch.index.engine.EngineConfigFactory engineConfigFactory,
Runnable globalCheckpointSyncer,
org.opensearch.index.seqno.RetentionLeaseSyncer retentionLeaseSyncer,
org.opensearch.index.shard.IndexEventListener indexEventListener,
org.opensearch.indices.replication.checkpoint.SegmentReplicationCheckpointPublisher checkpointPublisher,
Path remotePath,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.core.index.shard.ShardId shardId,
boolean primary,
String nodeId,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.common.CheckedFunction<org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.DirectoryReader, IOException> readerWrapper) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.core.index.shard.ShardId shardId,
boolean primary,
String nodeId,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.common.CheckedFunction<org.apache.lucene.index.DirectoryReader, org.apache.lucene.index.DirectoryReader, IOException> readerWrapper,
Runnable globalCheckpointSyncer) protected org.opensearch.index.shard.IndexShardnewShard(org.opensearch.core.index.shard.ShardId shardId,
boolean primary,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardprotected org.opensearch.index.shard.IndexShardnewStartedShard(boolean primary) protected org.opensearch.index.shard.IndexShardnewStartedShard(boolean primary,
org.opensearch.common.settings.Settings settings) protected org.opensearch.index.shard.IndexShardnewStartedShard(boolean primary,
org.opensearch.common.settings.Settings settings,
org.opensearch.index.engine.EngineFactory engineFactory) protected org.opensearch.index.shard.IndexShardnewStartedShard(org.opensearch.common.CheckedFunction<Boolean, org.opensearch.index.shard.IndexShard, IOException> shardFunction,
boolean primary) protected org.opensearch.index.shard.IndexShardnewStartedShard(org.opensearch.common.settings.Settings settings) final org.opensearch.indices.replication.SegmentReplicationTargetServiceprepareForReplication(org.opensearch.index.shard.IndexShard primaryShard,
org.opensearch.index.shard.IndexShard target) SegmentReplicationTargetService to perform replications that has
been configured to return the given primaryShard's current segments.final org.opensearch.indices.replication.SegmentReplicationTargetServiceprepareForReplication(org.opensearch.index.shard.IndexShard primaryShard,
org.opensearch.index.shard.IndexShard target,
org.opensearch.transport.TransportService transportService,
org.opensearch.indices.IndicesService indicesService,
org.opensearch.cluster.service.ClusterService clusterService) protected voidpromoteReplica(org.opensearch.index.shard.IndexShard replica,
Set<String> inSyncIds,
org.opensearch.cluster.routing.IndexShardRoutingTable routingTable) static booleanrecoverFromStore(org.opensearch.index.shard.IndexShard newShard) protected voidrecoverReplica(org.opensearch.index.shard.IndexShard replica,
org.opensearch.index.shard.IndexShard primary,
boolean startReplica) protected voidrecoverReplica(org.opensearch.index.shard.IndexShard replica,
org.opensearch.index.shard.IndexShard primary,
boolean startReplica,
Function<List<org.opensearch.index.shard.IndexShard>, List<org.opensearch.indices.replication.SegmentReplicationTarget>> replicatePrimaryFunction) protected voidrecoverReplica(org.opensearch.index.shard.IndexShard replica,
org.opensearch.index.shard.IndexShard primary,
BiFunction<org.opensearch.index.shard.IndexShard, org.opensearch.cluster.node.DiscoveryNode, org.opensearch.indices.recovery.RecoveryTarget> targetSupplier,
boolean markAsRecovering,
boolean markAsStarted) protected voidrecoverReplica(org.opensearch.index.shard.IndexShard replica,
org.opensearch.index.shard.IndexShard primary,
BiFunction<org.opensearch.index.shard.IndexShard, org.opensearch.cluster.node.DiscoveryNode, org.opensearch.indices.recovery.RecoveryTarget> targetSupplier,
boolean markAsRecovering,
boolean markAsStarted,
Function<List<org.opensearch.index.shard.IndexShard>, List<org.opensearch.indices.replication.SegmentReplicationTarget>> replicatePrimaryFunction) protected voidrecoverShardFromSnapshot(org.opensearch.index.shard.IndexShard shard,
org.opensearch.snapshots.Snapshot snapshot,
org.opensearch.repositories.Repository repository) protected voidrecoverShardFromStore(org.opensearch.index.shard.IndexShard primary) final voidrecoverUnstartedReplica(org.opensearch.index.shard.IndexShard replica,
org.opensearch.index.shard.IndexShard primary,
BiFunction<org.opensearch.index.shard.IndexShard, org.opensearch.cluster.node.DiscoveryNode, org.opensearch.indices.recovery.RecoveryTarget> targetSupplier,
boolean markAsRecovering,
Set<String> inSyncIds,
org.opensearch.cluster.routing.IndexShardRoutingTable routingTable,
Function<List<org.opensearch.index.shard.IndexShard>, List<org.opensearch.indices.replication.SegmentReplicationTarget>> replicatePrimaryFunction) protected voidrecoveryEmptyReplica(org.opensearch.index.shard.IndexShard replica,
boolean startReplica) protected org.opensearch.index.shard.IndexShardreinitShard(org.opensearch.index.shard.IndexShard current,
Path remotePath,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardreinitShard(org.opensearch.index.shard.IndexShard current,
org.opensearch.cluster.routing.ShardRouting routing,
Path remotePath,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardreinitShard(org.opensearch.index.shard.IndexShard current,
org.opensearch.cluster.routing.ShardRouting routing,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata,
org.opensearch.index.engine.EngineFactory engineFactory,
org.opensearch.index.engine.EngineConfigFactory engineConfigFactory,
Path remotePath,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardreinitShard(org.opensearch.index.shard.IndexShard current,
org.opensearch.cluster.routing.ShardRouting routing,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected org.opensearch.index.shard.IndexShardreinitShard(org.opensearch.index.shard.IndexShard current,
org.opensearch.index.shard.IndexingOperationListener... listeners) protected final voidreplicateMergedSegments(org.opensearch.index.shard.IndexShard primaryShard,
List<org.opensearch.index.shard.IndexShard> replicaShards) protected final List<org.opensearch.indices.replication.SegmentReplicationTarget> replicateSegments(org.opensearch.index.shard.IndexShard primaryShard,
List<org.opensearch.index.shard.IndexShard> replicaShards) voidsetUp()protected org.opensearch.threadpool.ThreadPoolprotected StringsnapshotShard(org.opensearch.index.shard.IndexShard shard,
org.opensearch.snapshots.Snapshot snapshot,
org.opensearch.repositories.Repository repository) protected voidstartReplicaAfterRecovery(org.opensearch.index.shard.IndexShard replica,
org.opensearch.index.shard.IndexShard primary,
Set<String> inSyncIds,
org.opensearch.cluster.routing.IndexShardRoutingTable routingTable) voidtearDown()protected voidorg.opensearch.common.settings.Settingsprotected voidupdateMappings(org.opensearch.index.shard.IndexShard shard,
org.opensearch.cluster.metadata.IndexMetadata indexMetadata) static voidupdateRoutingEntry(org.opensearch.index.shard.IndexShard shard,
org.opensearch.cluster.routing.ShardRouting shardRouting) 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, terminate, terminate, tmpPaths, toShuffledXContent, toShuffledXContent, waitUntil, waitUntil, warmIndexSettings, writableRegistry, xContentRegistryaddVirusChecker, 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, setupCPUCoreCount, setUpExecutorService, shutdownExecutorService, slowFileExists, usually, usually, wrapReaderassertArrayEquals, 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, failtearDown in class OpenSearchTestCaseExceptionIOExceptionIOExceptionprimary - indicates whether to a primary shard (ready to recover from an empty store) or a replica (ready to recover from
another shard)IOExceptionprimary - indicates whether to a primary shard (ready to recover from an empty store) or a replica (ready to recover from
another shard)IOExceptionprimary - indicates whether to a primary shard (ready to recover from an empty store) or a replica (ready to recover from
another shard)settings - the settings to use for this shardengineFactory - the engine factory to use for this shardIOExceptionIOExceptionIOExceptionshardRouting - the ShardRouting to use for this shardsettings - the settings to use for this shardengineFactory - the engine factory to use for this shardlisteners - an optional set of listeners to add to the shardIOExceptionshardId - the shard id to useprimary - indicates whether to a primary shard (ready to recover from an empty store) or a replica
(ready to recover from another shard)listeners - an optional set of listeners to add to the shardIOExceptionshardId - the shard id to useprimary - indicates whether to a primary shard (ready to recover from an empty store) or a replica
(ready to recover from another shard)IOExceptionshardId - the shard id to useprimary - indicates whether to a primary shard (ready to recover from an empty store) or a replica
(ready to recover from another shard)IOExceptionrouting - shard routing to useindexMetadata - indexMetadata for the shard, including any mappinglisteners - an optional set of listeners to add to the shardIOExceptionrouting - shard routing to useindexMetadata - indexMetadata for the shard, including any mappingindexReaderWrapper - an optional wrapper to be used during searchglobalCheckpointSyncer - callback for syncing global checkpointslisteners - an optional set of listeners to add to the shardIOExceptionrouting - shard routing to useshardPath - path to use for shard dataindexMetadata - indexMetadata for the shard, including any mappingstoreProvider - an optional custom store provider to use. If null a default file based store will be createdindexReaderWrapper - an optional wrapper to be used during searchglobalCheckpointSyncer - callback for syncing global checkpointsindexEventListener - index event listenerlisteners - an optional set of listeners to add to the shardIOExceptionIOExceptioncheckpointPublisher - Segment Replication Checkpoint Publisher to publish checkpointIOExceptionrouting - shard routing to useshardPath - path to use for shard dataindexMetadata - indexMetadata for the shard, including any mappingstoreProvider - an optional custom store provider to use. If null a default file based store will be createdindexReaderWrapper - an optional wrapper to be used during searchglobalCheckpointSyncer - callback for syncing global checkpointsindexEventListener - index event listenercheckpointPublisher - segment Replication Checkpoint Publisher to publish checkpointlisteners - an optional set of listeners to add to the shardIOExceptionIOExceptionIOExceptionIOExceptionIOExceptioncurrent - The current shard to reinitremotePath - Remote path to recover from if remote storage is usedlisteners - new listerns to use for the newly created shardIOExceptionrouting - the shard routing to use for the newly created shard.listeners - new listerns to use for the newly created shardIOExceptionIOExceptionrouting - the shard routing to use for the newly created shard.indexMetadata - the index metadata to use for the newly created shardengineFactory - the engine factory for the new shardlisteners - new listerns to use for the newly created shardIOExceptionIOExceptionsettings - the settings to use for this shardIOExceptionprimary - controls whether the shard will be a primary or a replica.IOExceptionprimary - controls whether the shard will be a primary or a replica.settings - the settings to use for this shardIOExceptionprimary - controls whether the shard will be a primary or a replica.settings - the settings to use for this shardengineFactory - the engine factory to use for this shardIOExceptionshardFunction - shard factory functionprimary - controls whether the shard will be a primary or a replica.IOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOException
Note: this method keeps the shard in IndexShardState.POST_RECOVERY and doesn't start it.
replica - the recovery target shardprimary - the recovery source shardtargetSupplier - supplies an instance of RecoveryTargetmarkAsRecovering - set to false if the replica is marked as recoveringIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionIOExceptionSegmentReplicationTargetService to perform replications that has
been configured to return the given primaryShard's current segments.primaryShard - IndexShard - The primary shard to replicate from.target - IndexShard - The target replica shard.primaryShard - - source of segment replicationreplicaShard - - target of segment replicationprimaryMetadata - - primary shard metadata before start of segment replicationlatch - - Latch which allows consumers of this utility to ensure segment replication completed successfullyprimaryShard - - source of segment replicationreplicaShard - - target of segment replicationprimaryMetadata - - primary shard metadata before start of segment replicationlatch - - Latch which allows consumers of this utility to ensure segment replication completed successfullyprimaryShard - Primary IndexShard - source of segment replicationgetTargetFunc - - provides replication target from target service using replication idgetMergedSegmentTargetFunc - - provides merged segment replication target from target service using replication idpostGetFilesRunnable - - Consumer which is executed after file copy operation. This can be used to stub operations
which are desired right after files are copied. e.g. To work with temp filesSegmentReplicationTarget for each replica with a mock SegmentReplicationSource that
writes all segments directly to the target.primaryShard - - IndexShard The current primary shard.replicaShards - - Replicas that will be updated.List List of target components orchestrating replication.IOExceptionInterruptedExceptionSegmentReplicationTarget for each replica with a mock SegmentReplicationSource that
writes all segments directly to the target.primaryShard - - IndexShard The current primary shard.replicaShards - - Replicas that will be updated.IOExceptionInterruptedException