public abstract class IndexShardTestCase extends ESTestCase
IndexShard
instances easily,
containing utilities for shard creation and recoveries. See {newShard(boolean)
} and
newStartedShard()
for a good starting pointsESTestCase.GeohashGenerator, ESTestCase.TestAnalysis
org.apache.lucene.util.LuceneTestCase.AwaitsFix, org.apache.lucene.util.LuceneTestCase.BadApple, org.apache.lucene.util.LuceneTestCase.Monster, org.apache.lucene.util.LuceneTestCase.Nightly, org.apache.lucene.util.LuceneTestCase.Slow, org.apache.lucene.util.LuceneTestCase.SuppressCodecs, org.apache.lucene.util.LuceneTestCase.SuppressFileSystems, org.apache.lucene.util.LuceneTestCase.SuppressFsync, org.apache.lucene.util.LuceneTestCase.SuppressReproduceLine, org.apache.lucene.util.LuceneTestCase.SuppressSysoutChecks, org.apache.lucene.util.LuceneTestCase.SuppressTempFileChecks, org.apache.lucene.util.LuceneTestCase.ThrowingRunnable, org.apache.lucene.util.LuceneTestCase.Weekly
Modifier and Type | Field | Description |
---|---|---|
protected static java.util.concurrent.atomic.AtomicLong |
currentClusterStateVersion |
|
protected static org.elasticsearch.indices.recovery.PeerRecoveryTargetService.RecoveryListener |
recoveryListener |
|
protected org.elasticsearch.threadpool.ThreadPool |
threadPool |
checkIndexFailed, deprecationLogger, failureAndSuccessEvents, logger
assertsAreEnabled, classRules, DEFAULT_LINE_DOCS_FILE, INFOSTREAM, JENKINS_LARGE_LINE_DOCS_FILE, LEAVE_TEMPORARY, MAYBE_CACHE_POLICY, RANDOM_MULTIPLIER, ruleChain, suiteFailureMarker, SYSPROP_AWAITSFIX, SYSPROP_BADAPPLES, SYSPROP_FAILFAST, SYSPROP_MAXFAILURES, SYSPROP_MONSTER, SYSPROP_NIGHTLY, SYSPROP_SLOW, SYSPROP_WEEKLY, TEST_ASSERTS_ENABLED, TEST_AWAITSFIX, TEST_CODEC, TEST_DIRECTORY, TEST_DOCVALUESFORMAT, TEST_LINE_DOCS_FILE, TEST_NIGHTLY, TEST_POSTINGSFORMAT, TEST_SLOW, TEST_THROTTLING, TEST_WEEKLY, VERBOSE
Constructor | Description |
---|---|
IndexShardTestCase() |
Modifier and Type | Method | Description |
---|---|---|
protected void |
assertDocCount(org.elasticsearch.index.shard.IndexShard shard,
int docDount) |
|
protected void |
assertDocs(org.elasticsearch.index.shard.IndexShard shard,
java.lang.String... ids) |
|
protected void |
closeShards(java.lang.Iterable<org.elasticsearch.index.shard.IndexShard> shards) |
|
protected void |
closeShards(org.elasticsearch.index.shard.IndexShard... shards) |
|
protected org.elasticsearch.index.engine.Engine.DeleteResult |
deleteDoc(org.elasticsearch.index.shard.IndexShard shard,
java.lang.String type,
java.lang.String id) |
|
protected void |
flushShard(org.elasticsearch.index.shard.IndexShard shard) |
|
protected void |
flushShard(org.elasticsearch.index.shard.IndexShard shard,
boolean force) |
|
static org.elasticsearch.index.engine.Engine |
getEngine(org.elasticsearch.index.shard.IndexShard indexShard) |
Helper method to access (package-protected) engine from tests
|
protected org.elasticsearch.cluster.node.DiscoveryNode |
getFakeDiscoNode(java.lang.String id) |
|
static org.elasticsearch.index.seqno.GlobalCheckpointTracker |
getGlobalCheckpointTracker(org.elasticsearch.index.shard.IndexShard indexShard) |
|
protected java.util.function.Consumer<org.elasticsearch.index.mapper.Mapping> |
getMappingUpdater(org.elasticsearch.index.shard.IndexShard shard,
java.lang.String type) |
|
protected java.util.Set<java.lang.String> |
getShardDocUIDs(org.elasticsearch.index.shard.IndexShard shard) |
|
protected org.elasticsearch.index.engine.Engine.IndexResult |
indexDoc(org.elasticsearch.index.shard.IndexShard shard,
java.lang.String type,
java.lang.String id) |
|
protected org.elasticsearch.index.engine.Engine.IndexResult |
indexDoc(org.elasticsearch.index.shard.IndexShard shard,
java.lang.String type,
java.lang.String id,
java.lang.String source) |
|
protected org.elasticsearch.index.engine.Engine.IndexResult |
indexDoc(org.elasticsearch.index.shard.IndexShard shard,
java.lang.String type,
java.lang.String id,
java.lang.String source,
org.elasticsearch.common.xcontent.XContentType xContentType) |
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(boolean primary) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.cluster.routing.ShardRouting routing,
org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.cluster.routing.ShardRouting routing,
org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData,
org.elasticsearch.index.shard.IndexSearcherWrapper indexSearcherWrapper,
org.elasticsearch.index.engine.EngineFactory engineFactory,
java.lang.Runnable globalCheckpointSyncer,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.cluster.routing.ShardRouting shardRouting,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.cluster.routing.ShardRouting routing,
org.elasticsearch.index.shard.ShardPath shardPath,
org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData,
org.elasticsearch.index.shard.IndexSearcherWrapper indexSearcherWrapper,
org.elasticsearch.index.engine.EngineFactory engineFactory,
java.lang.Runnable globalCheckpointSyncer,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.index.shard.ShardId shardId,
boolean primary,
java.lang.String nodeId,
org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData,
org.elasticsearch.index.shard.IndexSearcherWrapper searcherWrapper) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.index.shard.ShardId shardId,
boolean primary,
java.lang.String nodeId,
org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData,
org.elasticsearch.index.shard.IndexSearcherWrapper searcherWrapper,
java.lang.Runnable globalCheckpointSyncer) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newShard(org.elasticsearch.index.shard.ShardId shardId,
boolean primary,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
creates a new initializing shard.
|
protected org.elasticsearch.index.shard.IndexShard |
newStartedShard() |
creates a new empyu shard and starts it.
|
protected org.elasticsearch.index.shard.IndexShard |
newStartedShard(boolean primary) |
creates a new empty shard and starts it.
|
protected void |
recoverReplica(org.elasticsearch.index.shard.IndexShard replica,
org.elasticsearch.index.shard.IndexShard primary) |
recovers a replica from the given primary
|
protected void |
recoverReplica(org.elasticsearch.index.shard.IndexShard replica,
org.elasticsearch.index.shard.IndexShard primary,
java.util.function.BiFunction<org.elasticsearch.index.shard.IndexShard,org.elasticsearch.cluster.node.DiscoveryNode,org.elasticsearch.indices.recovery.RecoveryTarget> targetSupplier,
boolean markAsRecovering) |
recovers a replica from the given primary
|
protected void |
recoverReplica(org.elasticsearch.index.shard.IndexShard replica,
org.elasticsearch.index.shard.IndexShard primary,
java.util.function.BiFunction<org.elasticsearch.index.shard.IndexShard,org.elasticsearch.cluster.node.DiscoveryNode,org.elasticsearch.indices.recovery.RecoveryTarget> targetSupplier,
boolean markAsRecovering,
java.util.Set<java.lang.String> inSyncIds,
org.elasticsearch.cluster.routing.IndexShardRoutingTable routingTable) |
Recovers a replica from the give primary, allow the user to supply a custom recovery target.
|
protected void |
recoverShardFromSnapshot(org.elasticsearch.index.shard.IndexShard shard,
org.elasticsearch.snapshots.Snapshot snapshot,
org.elasticsearch.repositories.Repository repository) |
Recover a shard from a snapshot using a given repository
|
protected void |
recoverShardFromStore(org.elasticsearch.index.shard.IndexShard primary) |
|
protected void |
recoveryEmptyReplica(org.elasticsearch.index.shard.IndexShard replica) |
|
protected org.elasticsearch.index.shard.IndexShard |
reinitShard(org.elasticsearch.index.shard.IndexShard current,
org.elasticsearch.cluster.routing.ShardRouting routing,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
Takes an existing shard, closes it and and starts a new initialing shard at the same location
|
protected org.elasticsearch.index.shard.IndexShard |
reinitShard(org.elasticsearch.index.shard.IndexShard current,
org.elasticsearch.index.shard.IndexingOperationListener... listeners) |
Takes an existing shard, closes it and and starts a new initialing shard at the same location
|
void |
setUp() |
|
protected void |
snapshotShard(org.elasticsearch.index.shard.IndexShard shard,
org.elasticsearch.snapshots.Snapshot snapshot,
org.elasticsearch.repositories.Repository repository) |
Snapshot a shard using a given repository
|
void |
tearDown() |
|
org.elasticsearch.common.settings.Settings |
threadPoolSettings() |
|
protected void |
updateMappings(org.elasticsearch.index.shard.IndexShard shard,
org.elasticsearch.cluster.metadata.IndexMetaData indexMetadata) |
|
static void |
updateRoutingEntry(org.elasticsearch.index.shard.IndexShard shard,
org.elasticsearch.cluster.routing.ShardRouting shardRouting) |
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, assertThat, assertThat, assertTrue, assertTrue, fail, fail
after, afterIfFailed, afterIfSuccessful, assertAllIndicesRemovedAndDeletionCompleted, assertArrayEquals, assertBusy, assertBusy, assertEquals, assertEqualsWithErrorMessageFromXContent, assertPathHasBeenCleared, assertSettingDeprecationsAndWarnings, assertWarnings, awaitBusy, awaitBusy, before, between, buildNewFakeTransportAddress, checkStaticState, copyWriteable, createParser, createParser, createParser, createParser, createParser, createTestAnalysis, createTestAnalysis, createTestAnalysis, enableWarningsCheck, ensureAllSearchContextsReleased, ensureCheckIndexPassed, frequently, generateRandomStringArray, generateRandomStringArray, getBwcIndicesPath, getDataPath, getSuiteFailureMarker, getTestTransportPlugin, getTestTransportType, iterations, maybeSet, mockScript, newNodeEnvironment, newNodeEnvironment, newTestIndicesModule, newTestScriptModule, randomAlphaOfLength, randomAlphaOfLengthBetween, randomBoolean, randomByte, randomDateTimeZone, randomDouble, randomDoubleBetween, randomFloat, randomFrom, randomFrom, randomFrom, randomFrom, randomFrom, randomGeohash, randomInt, randomInt, randomIntBetween, randomLong, randomLongBetween, randomNonNegativeLong, randomPositiveTimeValue, randomRealisticUnicodeOfCodepointLength, randomRealisticUnicodeOfCodepointLengthBetween, randomRealisticUnicodeOfLength, randomRealisticUnicodeOfLengthBetween, randomShort, randomSubsetOf, randomSubsetOf, randomSubsetOf, randomTimeValue, randomTimeValue, randomTimeValue, randomUnicodeOfCodepointLength, randomUnicodeOfCodepointLengthBetween, randomUnicodeOfLength, randomUnicodeOfLengthBetween, randomUnique, randomValueOtherThan, randomValueOtherThanMany, resetCheckIndexStatus, resetPortCounter, restoreContentType, restoreFileSystem, scaledRandomIntBetween, setContentType, setFileSystem, settings, setUseNio, shuffleMap, shuffleXContent, shuffleXContent, spinForAtLeastNMilliseconds, spinForAtLeastOneMillisecond, terminate, terminate, tmpPaths, toShuffledXContent, writableRegistry, xContentRegistry
addVirusChecker, assertDeletedDocsEquals, assertDocsAndPositionsEnumEquals, assertDocsEnumEquals, assertDocsSkippingEquals, assertDocValuesEquals, assertDocValuesEquals, assertFieldInfosEquals, assertFieldsEquals, assertFieldStatisticsEquals, assertNormsEquals, assertPointsEquals, assertPositionsSkippingEquals, assertReaderEquals, assertReaderStatisticsEquals, assertStoredFieldEquals, assertStoredFieldsEquals, assertTermsEnumEquals, assertTermsEquals, assertTermsStatisticsEquals, assertTermStatsEquals, assertTermVectorsEquals, asSet, assumeFalse, assumeNoException, assumeTrue, assumeWorkingMMapOnWindows, atLeast, atLeast, closeAfterSuite, closeAfterTest, collate, createTempDir, createTempDir, createTempFile, createTempFile, dumpArray, dumpIterator, expectThrows, expectThrows, getBaseTempDirForTestClass, getDataInputStream, getOnlyLeafReader, getTestClass, getTestName, hasWorkingMMapOnWindows, isTestThread, localeForLanguageTag, maybeChangeLiveIndexWriterConfig, maybeWrapReader, newAlcoholicMergePolicy, newAlcoholicMergePolicy, newDirectory, newDirectory, newDirectory, newDirectory, newDirectory, newField, newField, newFSDirectory, newFSDirectory, newIndexWriterConfig, newIndexWriterConfig, newIndexWriterConfig, newIOContext, newIOContext, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newLogMergePolicy, newMaybeVirusCheckingDirectory, newMaybeVirusCheckingFSDirectory, newMergePolicy, newMergePolicy, newMockDirectory, newMockDirectory, newMockDirectory, newMockFSDirectory, newMockFSDirectory, newSearcher, newSearcher, newSearcher, newStringField, newStringField, newStringField, newStringField, newTextField, newTextField, newTieredMergePolicy, newTieredMergePolicy, overrideDefaultQueryCache, overrideTestDefaultQueryCache, random, randomLocale, randomTimeZone, rarely, rarely, replaceMaxFailureRule, resetDefaultQueryCache, restoreCPUCoreCount, restoreIndexWriterMaxDocs, restoreSpins, runWithRestrictedPermissions, setIndexWriterMaxDocs, setupCPUCoreCount, setupSpins, slowFileExists, usually, usually, wrapReader
protected static final org.elasticsearch.indices.recovery.PeerRecoveryTargetService.RecoveryListener recoveryListener
protected org.elasticsearch.threadpool.ThreadPool threadPool
protected static java.util.concurrent.atomic.AtomicLong currentClusterStateVersion
public void setUp() throws java.lang.Exception
setUp
in class org.apache.lucene.util.LuceneTestCase
java.lang.Exception
public void tearDown() throws java.lang.Exception
tearDown
in class org.apache.lucene.util.LuceneTestCase
java.lang.Exception
public org.elasticsearch.common.settings.Settings threadPoolSettings()
protected org.elasticsearch.index.shard.IndexShard newShard(boolean primary) throws java.io.IOException
primary
- indicates whether to a primary shard (ready to recover from an empty store) or a replica
(ready to recover from another shard)java.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.cluster.routing.ShardRouting shardRouting, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
shardRouting
- the ShardRouting
to use for this shardlisteners
- an optional set of listeners to add to the shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.index.shard.ShardId shardId, boolean primary, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
shardId
- 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 shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.index.shard.ShardId shardId, boolean primary, java.lang.String nodeId, org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData, @Nullable org.elasticsearch.index.shard.IndexSearcherWrapper searcherWrapper) throws java.io.IOException
shardId
- 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)java.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.index.shard.ShardId shardId, boolean primary, java.lang.String nodeId, org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData, @Nullable org.elasticsearch.index.shard.IndexSearcherWrapper searcherWrapper, java.lang.Runnable globalCheckpointSyncer) throws java.io.IOException
shardId
- 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)java.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
routing
- shard routing to useindexMetaData
- indexMetaData for the shard, including any mappinglisteners
- an optional set of listeners to add to the shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData, @Nullable org.elasticsearch.index.shard.IndexSearcherWrapper indexSearcherWrapper, @Nullable org.elasticsearch.index.engine.EngineFactory engineFactory, java.lang.Runnable globalCheckpointSyncer, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
routing
- shard routing to useindexMetaData
- indexMetaData for the shard, including any mappingindexSearcherWrapper
- an optional wrapper to be used during searchersglobalCheckpointSyncer
- callback for syncing global checkpointslisteners
- an optional set of listeners to add to the shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard newShard(org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.index.shard.ShardPath shardPath, org.elasticsearch.cluster.metadata.IndexMetaData indexMetaData, @Nullable org.elasticsearch.index.shard.IndexSearcherWrapper indexSearcherWrapper, @Nullable org.elasticsearch.index.engine.EngineFactory engineFactory, java.lang.Runnable globalCheckpointSyncer, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
routing
- shard routing to useshardPath
- path to use for shard dataindexMetaData
- indexMetaData for the shard, including any mappingindexSearcherWrapper
- an optional wrapper to be used during searchersglobalCheckpointSyncer
- callback for syncing global checkpointslisteners
- an optional set of listeners to add to the shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard reinitShard(org.elasticsearch.index.shard.IndexShard current, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
listeners
- new listerns to use for the newly created shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard reinitShard(org.elasticsearch.index.shard.IndexShard current, org.elasticsearch.cluster.routing.ShardRouting routing, org.elasticsearch.index.shard.IndexingOperationListener... listeners) throws java.io.IOException
routing
- the shard routing to use for the newly created shard.listeners
- new listerns to use for the newly created shardjava.io.IOException
protected org.elasticsearch.index.shard.IndexShard newStartedShard() throws java.io.IOException
java.io.IOException
protected org.elasticsearch.index.shard.IndexShard newStartedShard(boolean primary) throws java.io.IOException
primary
- controls whether the shard will be a primary or a replica.java.io.IOException
protected void closeShards(org.elasticsearch.index.shard.IndexShard... shards) throws java.io.IOException
java.io.IOException
protected void closeShards(java.lang.Iterable<org.elasticsearch.index.shard.IndexShard> shards) throws java.io.IOException
java.io.IOException
protected void recoverShardFromStore(org.elasticsearch.index.shard.IndexShard primary) throws java.io.IOException
java.io.IOException
public static void updateRoutingEntry(org.elasticsearch.index.shard.IndexShard shard, org.elasticsearch.cluster.routing.ShardRouting shardRouting) throws java.io.IOException
java.io.IOException
protected void recoveryEmptyReplica(org.elasticsearch.index.shard.IndexShard replica) throws java.io.IOException
java.io.IOException
protected org.elasticsearch.cluster.node.DiscoveryNode getFakeDiscoNode(java.lang.String id)
protected void recoverReplica(org.elasticsearch.index.shard.IndexShard replica, org.elasticsearch.index.shard.IndexShard primary) throws java.io.IOException
java.io.IOException
protected void recoverReplica(org.elasticsearch.index.shard.IndexShard replica, org.elasticsearch.index.shard.IndexShard primary, java.util.function.BiFunction<org.elasticsearch.index.shard.IndexShard,org.elasticsearch.cluster.node.DiscoveryNode,org.elasticsearch.indices.recovery.RecoveryTarget> targetSupplier, boolean markAsRecovering) throws java.io.IOException
java.io.IOException
protected final void recoverReplica(org.elasticsearch.index.shard.IndexShard replica, org.elasticsearch.index.shard.IndexShard primary, java.util.function.BiFunction<org.elasticsearch.index.shard.IndexShard,org.elasticsearch.cluster.node.DiscoveryNode,org.elasticsearch.indices.recovery.RecoveryTarget> targetSupplier, boolean markAsRecovering, java.util.Set<java.lang.String> inSyncIds, org.elasticsearch.cluster.routing.IndexShardRoutingTable routingTable) throws java.io.IOException
replica
- the recovery target shardprimary
- the recovery source shardtargetSupplier
- supplies an instance of RecoveryTarget
markAsRecovering
- set to false
if the replica is marked as recoveringjava.io.IOException
protected java.util.Set<java.lang.String> getShardDocUIDs(org.elasticsearch.index.shard.IndexShard shard) throws java.io.IOException
java.io.IOException
protected void assertDocCount(org.elasticsearch.index.shard.IndexShard shard, int docDount) throws java.io.IOException
java.io.IOException
protected void assertDocs(org.elasticsearch.index.shard.IndexShard shard, java.lang.String... ids) throws java.io.IOException
java.io.IOException
protected org.elasticsearch.index.engine.Engine.IndexResult indexDoc(org.elasticsearch.index.shard.IndexShard shard, java.lang.String type, java.lang.String id) throws java.io.IOException
java.io.IOException
protected org.elasticsearch.index.engine.Engine.IndexResult indexDoc(org.elasticsearch.index.shard.IndexShard shard, java.lang.String type, java.lang.String id, java.lang.String source) throws java.io.IOException
java.io.IOException
protected org.elasticsearch.index.engine.Engine.IndexResult indexDoc(org.elasticsearch.index.shard.IndexShard shard, java.lang.String type, java.lang.String id, java.lang.String source, org.elasticsearch.common.xcontent.XContentType xContentType) throws java.io.IOException
java.io.IOException
protected java.util.function.Consumer<org.elasticsearch.index.mapper.Mapping> getMappingUpdater(org.elasticsearch.index.shard.IndexShard shard, java.lang.String type)
protected void updateMappings(org.elasticsearch.index.shard.IndexShard shard, org.elasticsearch.cluster.metadata.IndexMetaData indexMetadata)
protected org.elasticsearch.index.engine.Engine.DeleteResult deleteDoc(org.elasticsearch.index.shard.IndexShard shard, java.lang.String type, java.lang.String id) throws java.io.IOException
java.io.IOException
protected void flushShard(org.elasticsearch.index.shard.IndexShard shard)
protected void flushShard(org.elasticsearch.index.shard.IndexShard shard, boolean force)
protected void recoverShardFromSnapshot(org.elasticsearch.index.shard.IndexShard shard, org.elasticsearch.snapshots.Snapshot snapshot, org.elasticsearch.repositories.Repository repository) throws java.io.IOException
java.io.IOException
protected void snapshotShard(org.elasticsearch.index.shard.IndexShard shard, org.elasticsearch.snapshots.Snapshot snapshot, org.elasticsearch.repositories.Repository repository) throws java.io.IOException
java.io.IOException
public static org.elasticsearch.index.engine.Engine getEngine(org.elasticsearch.index.shard.IndexShard indexShard)
public static org.elasticsearch.index.seqno.GlobalCheckpointTracker getGlobalCheckpointTracker(org.elasticsearch.index.shard.IndexShard indexShard)