
com.groupbyinc.flux.cluster.routing.allocation.command.CancelAllocationCommand.class Maven / Gradle / Ivy
???? 3 ? Ncom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand java/lang/Object Hcom/groupbyinc/flux/cluster/routing/allocation/command/AllocationCommand CancelAllocationCommand.java Vcom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand$Factory Factory Dcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodeIterator 0com/groupbyinc/flux/cluster/routing/RoutingNodes
RoutingNodeIterator 9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason 2com/groupbyinc/flux/cluster/routing/UnassignedInfo Reason NAME Ljava/lang/String; cancel shardId )Lcom/groupbyinc/flux/index/shard/ShardId; node allowPrimary Z ?(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Z)V ()V
! # % ' this PLcom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand; name ()Ljava/lang/String; +()Lcom/groupbyinc/flux/index/shard/ShardId; ()Z execute ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Z)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation 1 nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; 3 4
2 5 /com/groupbyinc/flux/cluster/node/DiscoveryNodes 7 resolveNode D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; 9 :
8 ; routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; = >
2 ? .com/groupbyinc/flux/cluster/node/DiscoveryNode A id C ,
B D routingNodeIter Z(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodeIterator; F G
H hasNext J .
K next 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; M N
O 0com/groupbyinc/flux/cluster/routing/ShardRouting Q -
R S 'com/groupbyinc/flux/index/shard/ShardId U equals (Ljava/lang/Object;)Z W X
V Y relocatingNodeId [ ,
R \ initializing ^ .
R _ remove a
b E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode; d
e /com/groupbyinc/flux/cluster/routing/RoutingNode g iterator ()Ljava/util/Iterator; i j
h k java/util/Iterator m n K ()Ljava/lang/Object; M p n q isSameShard 5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)Z s t
R u state 9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; w x
R y 5com/groupbyinc/flux/cluster/routing/ShardRoutingState {
RELOCATING 7Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; } ~ | cancelRelocation 5(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V ? ?
?
relocating ? .
R ? primary ? .
R ? Acom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation ? ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision ? NO ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ? ? ? ? cancel_allocation_command ? java/lang/StringBuilder ?
? !
can't cancel ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? on node ? -, shard is primary and initializing its state ? toString ? ,
? ? decision ?(Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ? ?
2 ? ?(Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocationCommand;Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;)V ?
? ? "java/lang/IllegalArgumentException ? ![cancel_allocation] can't cancel ? (Ljava/lang/String;)V ?
? ? REROUTE_CANCELLED ;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ? ? P(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;)V ?
? moveToUnassigned 7(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;)V ? ?
? isRelocationTargetOf ? t
R ? , shard is primary and started ? , failed to find it on node ? YES ? ? ? ? shard ? can be cancelled ? fromShardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; relocatingFromNode 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode; initializingShardRouting initializingNode FLcom/groupbyinc/flux/cluster/routing/RoutingNodes$RoutingNodeIterator; shardRouting it
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; explain discoNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; found
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses ! ? ? l *? "*+? $*,? &*? (? ? * ) * ? ? ? ? ? ? + , ? - ? ? ) * ? ? - ? / *? $? ? ) * ? ? , ? / *? &? ? ) * ? ? . ? / *? (? ? ) * ? ? / 0 ?
?+? 6*? &?