com.groupbyinc.flux.action.support.replication.TransportReplicationAction.class Maven / Gradle / Ivy
???? 4 Icom/groupbyinc/flux/action/support/replication/TransportReplicationAction R;ReplicaRequest:Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Response:Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse;>Lcom/groupbyinc/flux/action/support/TransportAction; 2com/groupbyinc/flux/action/support/TransportAction TransportReplicationAction.java `com/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest ConcreteReplicaRequest ^com/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteShardRequest
ConcreteShardRequest Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicasProxy
ReplicasProxy Ycom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResponse ReplicaResponse _com/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryShardReference PrimaryShardReference Xcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ShardReference ShardReference Vcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReroutePhase ReroutePhase \com/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction AsyncReplicaAction acom/groupbyinc/flux/action/support/replication/TransportReplicationAction$RetryOnReplicaException RetryOnReplicaException jcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaOperationTransportHandler " ReplicaOperationTransportHandler Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult %
ReplicaResult Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryResult (
PrimaryResult \com/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncPrimaryAction + AsyncPrimaryAction jcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryOperationTransportHandler . PrimaryOperationTransportHandler ccom/groupbyinc/flux/action/support/replication/TransportReplicationAction$OperationTransportHandler 1 OperationTransportHandler Kcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$1 4 Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas 6 Ccom/groupbyinc/flux/action/support/replication/ReplicationOperation 8 Replicas Scom/groupbyinc/flux/action/support/replication/ReplicationOperation$ReplicaResponse ; /com/groupbyinc/flux/threadpool/ThreadPool$Names = )com/groupbyinc/flux/threadpool/ThreadPool ? Names [com/groupbyinc/flux/action/support/replication/ReplicationOperation$RetryOnPrimaryException B RetryOnPrimaryException %java/lang/invoke/MethodHandles$Lookup E java/lang/invoke/MethodHandles G Lookup transportService 0Lcom/groupbyinc/flux/transport/TransportService; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; shardStateAction ;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; transportOptions 7Lcom/groupbyinc/flux/transport/TransportRequestOptions; executor Ljava/lang/String; transportReplicaAction transportPrimaryAction "syncGlobalCheckpointAfterOperation Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;)V?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;Z)V Z \
] this pLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction; KLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
actionName
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; request (Ljava/util/function/Supplier; Ljava/util/function/Supplier; replicaRequest /Ljava/util/function/Supplier; .com/groupbyinc/flux/transport/TransportService p getTaskManager )()Lcom/groupbyinc/flux/tasks/TaskManager; r s
q t (Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/tasks/TaskManager;)V Z v
w J K y L M { P Q } N O T U ? java/lang/StringBuilder ? ()V Z ?
? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? [p] ? toString ()Ljava/lang/String; ? ?
? ? W U ? [r] ? V U ? registerRequestHandlers ?(Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;)V ? ?
? 9()Lcom/groupbyinc/flux/transport/TransportRequestOptions; R ?
? R S ? X Y ? same ? N(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)V Z ?
2 ? registerRequestHandler {(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V ? ?
q ? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ? ? ()Ljava/lang/Object; ? lambda$registerRequestHandlers$0 (Ljava/util/function/Supplier;)Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteShardRequest; ? ?
? ? b()Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteShardRequest; ? get <(Ljava/util/function/Supplier;)Ljava/util/function/Supplier; ? ? ?
/ ? lambda$registerRequestHandlers$1 ?(Ljava/util/function/Supplier;)Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest; ? ?
? ? d()Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest; ? ?
# ? }(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;ZZLcom/groupbyinc/flux/transport/TransportRequestHandler;)V ? ?
q ? doExecute q(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 'java/lang/UnsupportedOperationException ? 1the task parameter is required for this operation ? (Ljava/lang/String;)V Z ?
? ? TRequest; CLcom/groupbyinc/flux/action/support/replication/ReplicationRequest; listener 7Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; ?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Lcom/groupbyinc/flux/action/ActionListener;)V >com/groupbyinc/flux/action/support/replication/ReplicationTask ? ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;Lcom/groupbyinc/flux/action/support/replication/ReplicationTask;Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Lcom/groupbyinc/flux/action/ActionListener;)V Z ?
? run ? ?
? task Lcom/groupbyinc/flux/tasks/Task; newReplicasProxy Q(J)Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas; O(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;J)V Z ?
? primaryTerm J newResponseInstance F()Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse; resolveRequest z(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;)V Acom/groupbyinc/flux/action/support/replication/ReplicationRequest ? waitForActiveShards 7()Lcom/groupbyinc/flux/action/support/ActiveShardCount; ? ?
? ? 3com/groupbyinc/flux/action/support/ActiveShardCount ? DEFAULT 5Lcom/groupbyinc/flux/action/support/ActiveShardCount; ? ? ? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? getWaitForActiveShards ? ?
? z(Lcom/groupbyinc/flux/action/support/ActiveShardCount;)Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest; ?
?
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; shardOperationOnPrimary ?(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;)Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryResult; java/lang/Exception shardOperationOnReplica ?(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;)Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult; globalBlockLevel 7()Lcom/groupbyinc/flux/cluster/block/ClusterBlockLevel; %Lcom/groupbyinc/flux/common/Nullable; indexBlockLevel resolveIndex ()Z 5com/groupbyinc/flux/transport/TransportRequestOptions EMPTY S retryPrimaryException (Ljava/lang/Throwable;)Z java/lang/Object getClass ()Ljava/lang/Class;
3com/groupbyinc/flux/action/support/TransportActions isShardNotAvailableException"
!# e Ljava/lang/Throwable;
getIndexShard W(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/index/shard/IndexShard; 'com/groupbyinc/flux/index/shard/ShardId) getIndex #()Lcom/groupbyinc/flux/index/Index;+,
*- *com/groupbyinc/flux/indices/IndicesService/ indexServiceSafe K(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/index/IndexService;12
03 id ()I56
*7 &com/groupbyinc/flux/index/IndexService9 getShard /(I)Lcom/groupbyinc/flux/index/shard/IndexShard;;<
:= shardId )Lcom/groupbyinc/flux/index/shard/ShardId; indexService (Lcom/groupbyinc/flux/index/IndexService; acquirePrimaryShardReference j(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLcom/groupbyinc/flux/action/ActionListener;)V'(
E *com/groupbyinc/flux/index/shard/IndexShardG routingEntry 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;IJ
HK 0com/groupbyinc/flux/cluster/routing/ShardRoutingM primaryO
NP +()Lcom/groupbyinc/flux/index/shard/ShardId;?R
HS actual shard is not a primary U -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?W
?X >(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)V ZZ
C[ allocationId 4()Lcom/groupbyinc/flux/cluster/routing/AllocationId;]^
N_ 0com/groupbyinc/flux/cluster/routing/AllocationIda getIdc ?
bd java/lang/Stringf equals (Ljava/lang/Object;)Zhi
gj 6com/groupbyinc/flux/index/shard/ShardNotFoundExceptionl expected aID [{}] but found [{}]n Q(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;[Ljava/lang/Object;)V Zp
mq getPrimaryTerm ()Jst
Hu /expected aID [{}] with term [{}] but found [{}]w java/lang/Longy valueOf (J)Ljava/lang/Long;{|
z} ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/index/shard/IndexShard;)V Z
5? acquirePrimaryOperationPermit @(Lcom/groupbyinc/flux/action/ActionListener;Ljava/lang/String;)V??
H? onReferenceAcquired ?Lcom/groupbyinc/flux/action/ActionListener.PrimaryShardReference;>;
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard; actualAllocationId
actualTerm
onAcquired ZLcom/groupbyinc/flux/action/ActionListener; sendReplicaRequest ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionListener;)V 8com/groupbyinc/flux/action/ActionListenerResponseHandler?
?? ]()Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResponse;? ()Ljava/util/function/Supplier; ?? ? K(Lcom/groupbyinc/flux/action/ActionListener;Ljava/util/function/Supplier;)V Z?
?? sendRequest ?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportRequestOptions;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V??
q? tLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest; bLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest; node 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ?Lcom/groupbyinc/flux/action/ActionListener; handler ?Lcom/groupbyinc/flux/action/ActionListenerResponseHandler; :Lcom/groupbyinc/flux/action/ActionListenerResponseHandler; setPhase U(Lcom/groupbyinc/flux/action/support/replication/ReplicationTask;Ljava/lang/String;)V? ?
?? @Lcom/groupbyinc/flux/action/support/replication/ReplicationTask; phase X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? x(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? (Ljava/util/function/Supplier;)V Z?
?
?
access$000 ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;?? ? x0
access$100 _(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Ljava/lang/String; d U ?
access$500 ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLcom/groupbyinc/flux/action/ActionListener;)VCD
? x1 x2 x3 x4
access$600
access$800
access$900 N(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Z access$1000 access$1200 access$1300 access$1400 access$1500 access$1600 x(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Lcom/groupbyinc/flux/threadpool/ThreadPool; e f ? access$1700 access$1900 access$2400 access$2500 access$2600 access$2800 access$2900 access$3000 access$3100 access$3200 access$3300 access$3400 access$3500 access$3600 access$3700 access$3800 access$3900 access$4000 access$4100 ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; i j ? access$4200 access$4300 access$4400 access$4500 access$4600 access$4700 access$4800 access$4900 access$5000 Code LocalVariableTable LocalVariableTypeTable LineNumberTable Signature(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;)V(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;Z)V ?(Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;)V C(TRequest;Lcom/groupbyinc/flux/action/ActionListener;)V c(Lcom/groupbyinc/flux/tasks/Task;TRequest;Lcom/groupbyinc/flux/action/ActionListener;)V c(J)Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas; ()TResponse;
StackMapTable @(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;TRequest;)V
Exceptions ?(TRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;)Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryResult; ?(TReplicaRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;)Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult; RuntimeVisibleAnnotations ?(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLcom/groupbyinc/flux/action/ActionListener.PrimaryShardReference;>;)V)(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ConcreteReplicaRequest;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionListener;)V BootstrapMethods
SourceFile InnerClasses! J K L M N O P Q R S T U V U W U X Y ? Z [ ? ?
*+,-
? ^? ? ?
_ a b c d U J K L M P Q e f N O g h i j k m
n m T U ? _ ` k l
n o ?
z |? ? Z \ ? t v*+, -? u? x*-? z*? |*? ~*? ?*? ?*? ?Y? ?,? ??? ?? ?? ?*? ?Y? ?,? ??? ?? ?? ?*,-
? ?**? ?? ?*
? ?? ? ? v _ a v b c v d U v J K v L M v P Q v e f v N O v g h v i j v k m
v n m v T U v X Y
? v _ ` v k l
v n o ? 2 ? ? ? ? ! ? ' ? - ? D ? [ ? g ? o ? u ?? ? ? ? ? ? D,+-?? 2Y*? ?? ?,*? ?-? ? ? /Y*? ?? ?,*? ?? ? ? #Y*? ɶ ̱ ? > D _ a D d U D J K D k m D n m D T U ? D _ ` D k l D n o ? ? ? ( ? C ?? ? ? ? ? n
? ?Yҷ տ ?
_ a
k ?
? ? ?
_ `
k ?
? ? ? ?? ? ? ? ? ? ? Y*+? ?,-? ? ? ? * _ a ? ? k ? ? ? ? _ ` k ? ? ? ?
? ?? ? ? ? P
? Y*? ? ?
_ a
? ? ?
_ ` ? ?? ? ? ? ? ? ? ,? ?? ?? ,+??W? ? _ a k ? ? _ ` k ? ? ?
? ? ?
?
?
? > ? ? _ a ? _ ` ? ? ? > ? ? _ a ? _ ` ? ? ? > ? ? _ a ? _ ` ? ? R ? ? @ ?? ? _ a ? _ ` ? ? ? p +?C?
+?$? ? ? ? _ a %&