com.groupbyinc.flux.cluster.routing.allocation.command.CancelAllocationCommand.class Maven / Gradle / Ivy
???? 4? Ncom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand java/lang/Object Hcom/groupbyinc/flux/cluster/routing/allocation/command/AllocationCommand CancelAllocationCommand.java 5com/groupbyinc/flux/common/xcontent/ToXContent$Params .com/groupbyinc/flux/common/xcontent/ToXContent
Params 8com/groupbyinc/flux/common/xcontent/XContentParser$Token
2com/groupbyinc/flux/common/xcontent/XContentParser Token 9com/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason 2com/groupbyinc/flux/cluster/routing/UnassignedInfo Reason NAME Ljava/lang/String; cancel COMMAND_NAME_FIELD 'Lcom/groupbyinc/flux/common/ParseField; index shardId I node allowPrimary Z )(Ljava/lang/String;ILjava/lang/String;Z)V ()V # %
& ( * , ! " . this PLcom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand; 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException 3 0com/groupbyinc/flux/common/io/stream/StreamInput 5
readString ()Ljava/lang/String; 7 8
6 9 readVInt ()I ; <
6 = readBoolean ()Z ? @
6 A in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; writeTo 6(Lcom/groupbyinc/flux/common/io/stream/StreamOutput;)V 1com/groupbyinc/flux/common/io/stream/StreamOutput G writeString (Ljava/lang/String;)V I J
H K writeVInt (I)V M N
H O writeBoolean (Z)V Q R
H S out 3Lcom/groupbyinc/flux/common/io/stream/StreamOutput; name execute ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Z)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation Z nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; \ ]
[ ^ /com/groupbyinc/flux/cluster/node/DiscoveryNodes ` resolveNode D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; b c
a d routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; f g
[ h .com/groupbyinc/flux/cluster/node/DiscoveryNode j getId l 8
k m 0com/groupbyinc/flux/cluster/routing/RoutingNodes o E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode; q
p r metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; t u
[ v 8
x -com/groupbyinc/flux/cluster/metadata/MetaData z H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; |
{ } 0com/groupbyinc/flux/index/IndexNotFoundException # J
? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? /com/groupbyinc/flux/cluster/routing/RoutingNode ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? 'com/groupbyinc/flux/index/shard/ShardId ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? ? <
? %(Lcom/groupbyinc/flux/index/Index;I)V # ?
? ? getByShardId ](Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/cluster/routing/ShardRouting; ? ?
? ? 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; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? , failed to find it on node ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? toString ? 8
? ? 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; ? ?
[ ? ?(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 ?
? ? primary ? @
? ? initializing ? @
? ? relocatingNodeId ? 8
? ? on node ? , shard is primary and ? state 9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; ? ?
? ? 5com/groupbyinc/flux/cluster/routing/ShardRoutingState ? W 8
? ? java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? java/lang/String ? toLowerCase &(Ljava/util/Locale;)Ljava/lang/String; ? ?
? ? *com/groupbyinc/flux/common/logging/Loggers ? getLogger K(Ljava/lang/Class;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ?
? ? REROUTE_CANCELLED ;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason; ? ? ? P(Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo$Reason;Ljava/lang/String;)V # ?
? changes >()Lcom/groupbyinc/flux/cluster/routing/RoutingChangesObserver; ? ?
[ ? failShard(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/RoutingChangesObserver;)V ? ?
p ? YES ? ? ? ? shard ? can be cancelled ? )Lcom/groupbyinc/flux/index/shard/ShardId;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; explain discoNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; 2Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; routingNode 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
toXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; 3com/groupbyinc/flux/common/xcontent/XContentBuilder startObject 7()Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
field [(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
shard J(Ljava/lang/String;I)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;
8
allow_primary! ! @
# J(Ljava/lang/String;Z)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;%
& endObject(
) builder 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; params 7Lcom/groupbyinc/flux/common/xcontent/ToXContent$Params; fromXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/CancelAllocationCommand; nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;12 3
END_OBJECT :Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;56 7
FIELD_NAME96 : currentName<