com.groupbyinc.flux.action.support.replication.ReplicationOperation.class Maven / Gradle / Ivy
???? 4
Ccom/groupbyinc/flux/action/support/replication/ReplicationOperation C;ReplicaRequest:Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;PrimaryResultT::Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$PrimaryResult;>Ljava/lang/Object; java/lang/Object ReplicationOperation.java Qcom/groupbyinc/flux/action/support/replication/ReplicationOperation$PrimaryResult
PrimaryResult [com/groupbyinc/flux/action/support/replication/ReplicationOperation$RetryOnPrimaryException
RetryOnPrimaryException Scom/groupbyinc/flux/action/support/replication/ReplicationOperation$ReplicaResponse
ReplicaResponse Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas Replicas Kcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Primary Primary Ecom/groupbyinc/flux/action/support/replication/ReplicationOperation$1 Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo Bcom/groupbyinc/flux/action/support/replication/ReplicationResponse ShardInfo Tcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo$Failure Failure %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles " Lookup logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; request CLcom/groupbyinc/flux/action/support/replication/ReplicationRequest; TRequest; opType Ljava/lang/String; totalShards +Ljava/util/concurrent/atomic/AtomicInteger; pendingActions successfulShards primary MLcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Primary; xLcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Primary;
replicasProxy NLcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas; `Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas; finished +Ljava/util/concurrent/atomic/AtomicBoolean; resultListener +Lcom/groupbyinc/flux/action/ActionListener; =Lcom/groupbyinc/flux/action/ActionListener;
primaryResult SLcom/groupbyinc/flux/action/support/replication/ReplicationOperation$PrimaryResult; TPrimaryResultT; shardReplicaFailures Ljava/util/List; hLjava/util/List; $assertionsDisabled Z V(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Primary;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$Replicas;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Ljava/lang/String;)V ()V C E
F )java/util/concurrent/atomic/AtomicInteger H
I F , - K . - M / - O )java/util/concurrent/atomic/AtomicBoolean Q
R F 6 7 T ; < V java/util/ArrayList X
Y F java/util/Collections [ synchronizedList "(Ljava/util/List;)Ljava/util/List; ] ^
\ _ > ? a 3 4 c 0 1 e 8 9 g % & i ' ( k * + m this pLcom/groupbyinc/flux/action/support/replication/ReplicationOperation; ELcom/groupbyinc/flux/action/support/replication/ReplicationOperation; listener replicas execute java/lang/Exception u checkActiveShardCount ()Ljava/lang/String; w x
y routingEntry 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; { | } 0com/groupbyinc/flux/cluster/routing/ShardRouting shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? ? 5com/groupbyinc/flux/action/UnavailableShardsException ? {} Timeout: [{}], request: [{}] ? Acom/groupbyinc/flux/action/support/replication/ReplicationRequest ? timeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? Q(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;[Ljava/lang/Object;)V C ?
? ? finishAsFailed (Ljava/lang/Exception;)V ? ?
? java/lang/String ? 'com/groupbyinc/flux/index/shard/ShardId ? incrementAndGet ()I ? ?
I ? perform ?(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;)Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation$PrimaryResult; ? ? ? allocationId 4()Lcom/groupbyinc/flux/cluster/routing/AllocationId; ? ?
? ? 0com/groupbyinc/flux/cluster/routing/AllocationId ? getId ? x
? ? localCheckpoint ()J ? ? ? updateLocalCheckpointForShard (Ljava/lang/String;J)V ? ? ? replicaRequest E()Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest; ? ? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? isTraceEnabled ()Z ? ? ? ? 2[{}] op [{}] completed on primary for request [{}] ? trace K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? globalCheckpoint ? ? ? getReplicationGroup 4()Lcom/groupbyinc/flux/index/shard/ReplicationGroup; ? ? ? 0com/groupbyinc/flux/index/shard/ReplicationGroup ? getInSyncAllocationIds ()Ljava/util/Set; ? ?
? ? getRoutingTable >()Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable; ? ?
? ? markUnavailableShardsAsStale ?(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;Ljava/util/Set;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)V ? ?
? performOnReplicas ?(Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;JLcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)V ? ?
? decPendingAndFinishIfNeeded ? E
? J replicationGroup 2Lcom/groupbyinc/flux/index/shard/ReplicationGroup; activeShardCountFailure primaryRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; primaryId )Lcom/groupbyinc/flux/index/shard/ShardId; TReplicaRequest; :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? getAllAllocationIds ? ?
? ? (com/groupbyinc/flux/common/util/set/Sets ?
difference /(Ljava/util/Set;Ljava/util/Set;)Ljava/util/Set; ? ?
? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ?
? ? "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;
E ? run [(Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation;)Ljava/lang/Runnable;
(Ljava/lang/Object;)V onPrimaryDemoted ?
? accept d(Lcom/groupbyinc/flux/action/support/replication/ReplicationOperation;)Ljava/util/function/Consumer; %lambda$markUnavailableShardsAsStale$0 ?
markShardCopyAsStaleIfNeeded ?(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Ljava/lang/Runnable;Ljava/util/function/Consumer;Ljava/util/function/Consumer;)V ! " inSyncAllocationIds #Ljava/util/Set; Ljava/util/Set; indexShardRoutingTable