com.groupbyinc.flux.action.support.replication.TransportReplicationAction$AsyncReplicaAction.class Maven / Gradle / Ivy
???? 4O \com/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction ?Lcom/groupbyinc/flux/common/util/concurrent/AbstractRunnable;Lcom/groupbyinc/flux/action/ActionListener; ;com/groupbyinc/flux/common/util/concurrent/AbstractRunnable )com/groupbyinc/flux/action/ActionListener TransportReplicationAction.java Icom/groupbyinc/flux/action/support/replication/TransportReplicationAction AsyncReplicaAction mcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction$ResponseListener ResponseListener ^com/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction$1 Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult
ReplicaResult Ycom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResponse ReplicaResponse acom/groupbyinc/flux/action/support/replication/TransportReplicationAction$RetryOnReplicaException RetryOnReplicaException 9com/groupbyinc/flux/cluster/ClusterStateObserver$Listener 0com/groupbyinc/flux/cluster/ClusterStateObserver Listener %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles ! Lookup request CLcom/groupbyinc/flux/action/support/replication/ReplicationRequest; TReplicaRequest; targetAllocationID Ljava/lang/String; primaryTerm J globalCheckpoint channel 0Lcom/groupbyinc/flux/transport/TransportChannel; replica ,Lcom/groupbyinc/flux/index/shard/IndexShard; task @Lcom/groupbyinc/flux/action/support/replication/ReplicationTask; observer 2Lcom/groupbyinc/flux/cluster/ClusterStateObserver; $assertionsDisabled Z this$0 KLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction; (Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Ljava/lang/String;JJLcom/groupbyinc/flux/transport/TransportChannel;Lcom/groupbyinc/flux/action/support/replication/ReplicationTask;)V 6 7 : ()V 8 <
= clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; ? @
A access$1500 ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; C D
E access$1600 x(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction;)Lcom/groupbyinc/flux/threadpool/ThreadPool; G H
I )com/groupbyinc/flux/threadpool/ThreadPool K getThreadContext <()Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext; M N
L O ?(Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/util/concurrent/ThreadContext;)V 8 Q
R 2 3 T $ % V , - X 0 1 Z ' ( \ ) * ^ + * ` Acom/groupbyinc/flux/action/support/replication/ReplicationRequest b shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; d e
c f 4 5 h java/lang/AssertionError j request shardId must be set l (Ljava/lang/Object;)V 8 n
k o java/lang/String q .com/groupbyinc/flux/transport/TransportChannel s >com/groupbyinc/flux/action/support/replication/ReplicationTask u 'com/groupbyinc/flux/index/shard/ShardId w
getIndexShard W(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/index/shard/IndexShard; y z
{ . / } this ?Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction.AsyncReplicaAction; ^Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction; )Lcom/groupbyinc/flux/index/shard/ShardId;
onResponse 0(Lcom/groupbyinc/flux/common/lease/Releasable;)V 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; ? ?
? +com/groupbyinc/flux/common/lease/Releasable ? close ? < ? ? *com/groupbyinc/flux/index/shard/IndexShard ? getLocalCheckpoint ()J ? ?
? ? getGlobalCheckpoint ? ?
? ? (JJ)V 8 ?
? ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction;Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResponse;)V 8 ?
? respond .(Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? ,com/groupbyinc/flux/common/lease/Releasables ? closeWhileHandlingException 1([Lcom/groupbyinc/flux/common/lease/Releasable;)V ? ?
? ? onFailure (Ljava/lang/Exception;)V ? ?
?
replicaResult YLcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult; response [Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResponse; e Ljava/lang/Exception;
releasable -Lcom/groupbyinc/flux/common/lease/Releasable; access$1700 ? D
? "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$onFailure$0 ? ?
? ? get ?(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; ? ? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? trace W(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ? ? ? ? onRetry ? <
c ? a(Lcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$AsyncReplicaAction;)V 8 ?
? waitForNextChange >(Lcom/groupbyinc/flux/cluster/ClusterStateObserver$Listener;)V ? ?
? responseWithFailure ? ?
? java/io/IOException ? finished ? setPhase U(Lcom/groupbyinc/flux/action/support/replication/ReplicationTask;Ljava/lang/String;)V ? ?
? sendResponse ? ? t ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
? ? access$2400 ? D
? lambda$responseWithFailure$1 ? ?
? ? ? warn ? ? ? ? responseException Ljava/io/IOException; doRun . routingEntry 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; ? ?
? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? allocationId 4()Lcom/groupbyinc/flux/cluster/routing/AllocationId;
? 0com/groupbyinc/flux/cluster/routing/AllocationId getId ()Ljava/lang/String;
equals (Ljava/lang/Object;)Z
r 6com/groupbyinc/flux/index/shard/ShardNotFoundException
? f expected aID [{}] but found [{}] java/lang/Object Q(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;[Ljava/lang/Object;)V 8
executor (
acquireReplicaOperationPermit B(JJLcom/groupbyinc/flux/action/ActionListener;Ljava/lang/String;)V
? actualAllocationId ? ?
Lcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessage" ;failed to send error message back to client for action [{}]$ transportReplicaAction&