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;
getMessage ()Ljava/util/Optional; java/lang/StringBuilder . ()V 0
/ 1 allocated a stale primary for [ 3 append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 5 6
/ 7 9 ][ ; = (I)Ljava/lang/StringBuilder; 5 ?
/ @ ] on node [ B D ] from user command F toString H +
/ I java/util/Optional K of ((Ljava/lang/Object;)Ljava/util/Optional; M N
L O fromXContent ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand;
1 parse ?(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand$Builder; T U
V build `()Lcom/groupbyinc/flux/cluster/routing/allocation/command/AllocateStalePrimaryAllocationCommand; X Y
Z 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 b 6com/groupbyinc/flux/index/shard/ShardNotFoundException d @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation f nodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; h i
g j /com/groupbyinc/flux/cluster/node/DiscoveryNodes l resolveNode D(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; n o
m p explainOrThrowRejectedCommand ?(ZLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/lang/RuntimeException;)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; r s
t .com/groupbyinc/flux/cluster/node/DiscoveryNode v routingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; x y
g z getId | +
w } 0com/groupbyinc/flux/cluster/routing/RoutingNodes E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode; ?
? ? explainOrThrowMissingRoutingNode ?(Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;ZLcom/groupbyinc/flux/cluster/node/DiscoveryNode;)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; ? ?
? /com/groupbyinc/flux/cluster/routing/RoutingNode ? routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ? ?
g ? 0com/groupbyinc/flux/cluster/routing/RoutingTable ? shardRoutingTable Q(Ljava/lang/String;I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable; ? ?
? ? :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? primaryShard 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; ? ?
? ? -com/groupbyinc/flux/ResourceNotFoundException ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ?
unassigned ()Z ? ?
? ? primary [ ? ] is already assigned ? ?(ZLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/allocation/RerouteExplanation; r ?
? ! " ? !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; ? ?
g ? ?(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; dataLossWarning
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 *()Ljava/util/Optional;
StackMapTable
SourceFile InnerClasses ! ? ? ? `
*+-? ? ? 4
! " ?
; <