com.groupbyinc.flux.cluster.routing.allocation.command.AllocateStalePrimaryAllocationCommand.class Maven / Gradle / Ivy
???? 4 ? \com/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand Scom/groupbyinc/flux/cluster/routing/allocation/command/BasePrimaryAllocationCommand *AllocateStalePrimaryAllocationCommand.java dcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand$Builder Builder 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type 2com/groupbyinc/flux/cluster/routing/RecoverySource Type NAME Ljava/lang/String; allocate_stale_primary COMMAND_NAME_FIELD 'Lcom/groupbyinc/flux/common/ParseField; STALE_PRIMARY_PARSER 2Lcom/groupbyinc/flux/common/xcontent/ObjectParser; ?Lcom/groupbyinc/flux/common/xcontent/ObjectParser; )(Ljava/lang/String;ILjava/lang/String;Z)V
this ^Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand; index shardId I node acceptDataLoss Z 5(Lcom/groupbyinc/flux/common/io/stream/StreamInput;)V java/io/IOException $ #
& in 2Lcom/groupbyinc/flux/common/io/stream/StreamInput; name ()Ljava/lang/String; fromXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand; ()V .
/ parse ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand$Builder; 1 2
3 build `()Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand; 5 6
7 parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; execute ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Z)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; "java/lang/IllegalArgumentException = 0com/groupbyinc/flux/index/IndexNotFoundException ? 6com/groupbyinc/flux/index/shard/ShardNotFoundException A @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation C nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; E F
D G I /com/groupbyinc/flux/cluster/node/DiscoveryNodes K resolveNode D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; M N
L O explainOrThrowRejectedCommand ?(ZLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/lang/RuntimeException;)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; Q R
S .com/groupbyinc/flux/cluster/node/DiscoveryNode U routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; W X
D Y getId [ +
V \ 0com/groupbyinc/flux/cluster/routing/RoutingNodes ^ E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode; `
_ a explainOrThrowMissingRoutingNode ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;ZLcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; c d
e /com/groupbyinc/flux/cluster/routing/RoutingNode g routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; i j
D k m o 0com/groupbyinc/flux/cluster/routing/RoutingTable q shardRoutingTable Q(Ljava/lang/String;I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable; s t
r u :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable w primaryShard 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; y z
x { -com/groupbyinc/flux/ResourceNotFoundException } 0com/groupbyinc/flux/cluster/routing/ShardRouting
unassigned ()Z ? ?
? ? java/lang/StringBuilder ?
? / primary [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ][ ? (I)Ljava/lang/StringBuilder; ? ?
? ? ] is already assigned ? toString ? +
? ? ?(ZLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; Q ?
? ! " ? !allocating an empty primary for [ ? [] can result in data loss. Please confirm by setting the accept_data_loss parameter to true ? recoverySource 6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource; ? ?
? ? getType ;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; ? ?
? EXISTING_STORE 9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; ? ?
? .trying to allocate an existing primary shard [ ? +], while no such shard has ever been active ? initializeUnassignedShard ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Lcom/groupbyinc/flux/cluster/routing/RoutingNodes;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/ShardRouting;)V ? ?
? Acom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation ? ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision ? YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ? ? ? ? * +
? (allocation command) ? ignore deciders ? java/lang/Object ? 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; ? ?
D ? ?(Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocationCommand;Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision;)V ?
? ? discoNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; e $Ljava/lang/IllegalArgumentException; shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; /Lcom/groupbyinc/flux/ResourceNotFoundException;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; explain 2Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; routingNode 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
access$000 4()Lcom/groupbyinc/flux/common/xcontent/ObjectParser; ? %com/groupbyinc/flux/common/ParseField ? java/lang/String ? ((Ljava/lang/String;[Ljava/lang/String;)V ?
? ? ? createAllocatePrimaryParser F(Ljava/lang/String;)Lcom/groupbyinc/flux/common/xcontent/ObjectParser; ? ?
?
ConstantValue Signature Code LocalVariableTable LineNumberTable
Exceptions
StackMapTable
SourceFile InnerClasses ! ? ? ? `
*+-? ? ? 4
! " ?
: ; # ? > *+? '? ? ( ) ?
A B ? % * + ? - ? ? ? F , - ? 9 ? Y? 0*? 4? 8? ? 9 : ? J ? % ; <