public class BlobRecoverySourceHandler
extends org.elasticsearch.indices.recovery.RecoverySourceHandler
Constructor and Description |
---|
BlobRecoverySourceHandler(org.elasticsearch.index.shard.IndexShard shard,
org.elasticsearch.indices.recovery.StartRecoveryRequest request,
org.elasticsearch.indices.recovery.RecoverySettings recoverySettings,
org.elasticsearch.transport.TransportService transportService,
org.elasticsearch.cluster.ClusterService clusterService,
org.elasticsearch.indices.IndicesService indicesService,
org.elasticsearch.cluster.action.index.MappingUpdatedAction mappingUpdatedAction,
org.elasticsearch.common.logging.ESLogger logger,
BlobTransferTarget blobTransferTarget,
BlobIndices blobIndices) |
Modifier and Type | Method and Description |
---|---|
void |
phase1(org.elasticsearch.index.deletionpolicy.SnapshotIndexCommit snapshot)
Perform phase1 of the recovery operations.
|
public BlobRecoverySourceHandler(org.elasticsearch.index.shard.IndexShard shard, org.elasticsearch.indices.recovery.StartRecoveryRequest request, org.elasticsearch.indices.recovery.RecoverySettings recoverySettings, org.elasticsearch.transport.TransportService transportService, org.elasticsearch.cluster.ClusterService clusterService, org.elasticsearch.indices.IndicesService indicesService, org.elasticsearch.cluster.action.index.MappingUpdatedAction mappingUpdatedAction, org.elasticsearch.common.logging.ESLogger logger, BlobTransferTarget blobTransferTarget, BlobIndices blobIndices)
public void phase1(org.elasticsearch.index.deletionpolicy.SnapshotIndexCommit snapshot) throws org.elasticsearch.ElasticsearchException
SnapshotIndexCommit
snapshot has been performed no commit operations (files being fsync'd)
are effectively allowed on this index until all recovery phases are done
Phase1 examines the segment files on the target node and copies over the
segments that are missing. Only segments that have the same size and
checksum can be reused
InternalEngine#recover
is responsible for snapshotting the index
and releasing the snapshot once all 3 phases of recovery are completephase1
in interface org.elasticsearch.index.engine.Engine.RecoveryHandler
phase1
in class org.elasticsearch.indices.recovery.RecoverySourceHandler
org.elasticsearch.ElasticsearchException