Module org.elasticsearch.server
Package org.elasticsearch.index.seqno
Class RetentionLeaseSyncAction
java.lang.Object
org.elasticsearch.action.support.TransportAction<RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Response>
org.elasticsearch.action.support.replication.TransportReplicationAction<RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Response>
org.elasticsearch.action.support.replication.TransportWriteAction<RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Response>
org.elasticsearch.index.seqno.RetentionLeaseSyncAction
public class RetentionLeaseSyncAction
extends TransportWriteAction<RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Request,RetentionLeaseSyncAction.Response>
Write action responsible for syncing retention leases to replicas. This action is deliberately a write action so that if a replica misses
a retention lease sync then that shard will be marked as stale.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static final class
Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportWriteAction
TransportWriteAction.WritePrimaryResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>,
Response extends ReplicationResponse & WriteResponse>, TransportWriteAction.WriteReplicaResult<ReplicaRequest extends ReplicatedWriteRequest<ReplicaRequest>> Nested classes/interfaces inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
TransportReplicationAction.ConcreteReplicaRequest<R extends TransportRequest>, TransportReplicationAction.ConcreteShardRequest<R extends TransportRequest>, TransportReplicationAction.PrimaryActionExecution, TransportReplicationAction.PrimaryResult<ReplicaRequest extends ReplicationRequest<ReplicaRequest>,
Response extends ReplicationResponse>, TransportReplicationAction.ReplicaActionExecution, TransportReplicationAction.ReplicaResponse, TransportReplicationAction.ReplicaResult, TransportReplicationAction.ReplicasProxy, TransportReplicationAction.RetryOnReplicaException, TransportReplicationAction.SyncGlobalCheckpointAfterOperation -
Field Summary
FieldsFields inherited from class org.elasticsearch.action.support.replication.TransportWriteAction
executorSelector, indexingPressure, postWriteRefresh, systemIndices
Fields inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
clusterService, executor, forceExecutionOnPrimary, indicesService, REPLICATION_INITIAL_RETRY_BACKOFF_BOUND, REPLICATION_RETRY_TIMEOUT, shardStateAction, threadPool, transportOptions, transportPrimaryAction, transportReplicaAction, transportService
Fields inherited from class org.elasticsearch.action.support.TransportAction
actionName, logger, taskManager
-
Constructor Summary
ConstructorsConstructorDescriptionRetentionLeaseSyncAction
(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexingPressure indexingPressure, SystemIndices systemIndices) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
dispatchedShardOperationOnPrimary
(RetentionLeaseSyncAction.Request request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<RetentionLeaseSyncAction.Request, RetentionLeaseSyncAction.Response>> listener) protected void
dispatchedShardOperationOnReplica
(RetentionLeaseSyncAction.Request request, IndexShard replica, ActionListener<TransportReplicationAction.ReplicaResult> listener) protected void
doExecute
(Task parentTask, RetentionLeaseSyncAction.Request request, ActionListener<RetentionLeaseSyncAction.Response> listener) Index level block to check before request execution.protected RetentionLeaseSyncAction.Response
Methods inherited from class org.elasticsearch.action.support.replication.TransportWriteAction
checkOperationLimits, checkPrimaryLimits, checkReplicaLimits, executor, force, globalBlockLevel, isSystemShard, locationToSync, newReplicasProxy, primaryOperationCount, primaryOperationSize, replicaOperationCount, replicaOperationSize, shardOperationOnPrimary, shardOperationOnReplica, syncOperationResultOrThrow
Methods inherited from class org.elasticsearch.action.support.replication.TransportReplicationAction
acquirePrimaryOperationPermit, acquireReplicaOperationPermit, adaptResponse, handlePrimaryRequest, handleReplicaRequest, resolveRequest, retryPrimaryException, transportOptions
Methods inherited from class org.elasticsearch.action.support.TransportAction
execute, executeDirect, localOnly
-
Field Details
-
ACTION_NAME
- See Also:
-
-
Constructor Details
-
RetentionLeaseSyncAction
@Inject public RetentionLeaseSyncAction(Settings settings, TransportService transportService, ClusterService clusterService, IndicesService indicesService, ThreadPool threadPool, ShardStateAction shardStateAction, ActionFilters actionFilters, IndexingPressure indexingPressure, SystemIndices systemIndices)
-
-
Method Details
-
doExecute
protected void doExecute(Task parentTask, RetentionLeaseSyncAction.Request request, ActionListener<RetentionLeaseSyncAction.Response> listener) -
dispatchedShardOperationOnPrimary
protected void dispatchedShardOperationOnPrimary(RetentionLeaseSyncAction.Request request, IndexShard primary, ActionListener<TransportReplicationAction.PrimaryResult<RetentionLeaseSyncAction.Request, RetentionLeaseSyncAction.Response>> listener) -
dispatchedShardOperationOnReplica
protected void dispatchedShardOperationOnReplica(RetentionLeaseSyncAction.Request request, IndexShard replica, ActionListener<TransportReplicationAction.ReplicaResult> listener) -
indexBlockLevel
Description copied from class:TransportReplicationAction
Index level block to check before request execution. Returning null means that no blocks need to be checked. -
newResponseInstance
-