
com.groupbyinc.flux.cluster.routing.allocation.decider.RestoreInProgressAllocationDecider.class Maven / Gradle / Ivy
???? 4 ? Ycom/groupbyinc/flux/cluster/routing/allocation/decider/RestoreInProgressAllocationDecider Hcom/groupbyinc/flux/cluster/routing/allocation/decider/AllocationDecider 'RestoreInProgressAllocationDecider.java @com/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus -com/groupbyinc/flux/cluster/RestoreInProgress ShardRestoreStatus 3com/groupbyinc/flux/cluster/RestoreInProgress$Entry Entry Icom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySource 2com/groupbyinc/flux/cluster/routing/RecoverySource SnapshotRecoverySource 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type Type /com/groupbyinc/flux/cluster/ClusterState$Custom (com/groupbyinc/flux/cluster/ClusterState Custom 3com/groupbyinc/flux/cluster/RestoreInProgress$State State NAME Ljava/lang/String; restore_in_progress $assertionsDisabled Z 1(Lcom/groupbyinc/flux/common/settings/Settings;)V $ %
& this [Lcom/groupbyinc/flux/cluster/routing/allocation/decider/RestoreInProgressAllocationDecider; settings .Lcom/groupbyinc/flux/common/settings/Settings; canAllocate ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/RoutingNode;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; ?(Lcom/groupbyinc/flux/cluster/routing/ShardRouting;Lcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation;)Lcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; , .
/ shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; node 1Lcom/groupbyinc/flux/cluster/routing/RoutingNode;
allocation BLcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation; 0com/groupbyinc/flux/cluster/routing/ShardRouting 7 recoverySource 6()Lcom/groupbyinc/flux/cluster/routing/RecoverySource; 9 :
8 ; getType ;()Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; = >
? SNAPSHOT 9Lcom/groupbyinc/flux/cluster/routing/RecoverySource$Type; A B C ?com/groupbyinc/flux/cluster/routing/allocation/decider/Decision E YES ALcom/groupbyinc/flux/cluster/routing/allocation/decider/Decision; G H F I 7ignored as shard is not being recovered from a snapshot K java/lang/Object M @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation O 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; Q R
P S snapshot *()Lcom/groupbyinc/flux/snapshots/Snapshot; U V
W restore Y custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; [ \
P ] entries ()Ljava/util/List; _ `
a java/util/List c iterator ()Ljava/util/Iterator; e f d g &com/groupbyinc/flux/snapshots/Snapshot i java/util/Iterator k hasNext ()Z m n l o next ()Ljava/lang/Object; q r l s
W equals (Ljava/lang/Object;)Z v w
j x shards 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; z {
| shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ~
8 ? 3com/groupbyinc/flux/common/collect/ImmutableOpenMap ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? state 7()Lcom/groupbyinc/flux/cluster/RestoreInProgress$State; ? ?
? completed ? n
? " # ? SUCCESS 5Lcom/groupbyinc/flux/cluster/RestoreInProgress$State; ? ? ? java/lang/AssertionError ? java/lang/StringBuilder ? ()V $ ?
? ? expected shard [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? '] to be in initializing state but got [ ? ] ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/Object;)V $ ?
? ? !shard is currently being restored ? NO ? H F ? ?shard has failed to be restored from the snapshot [%s] because of [%s] - manually close or delete the index [%s] in order to retry to restore the snapshot again or use the reroute API to force the allocation of an empty primary shard ? unassignedInfo 6()Lcom/groupbyinc/flux/cluster/routing/UnassignedInfo; ? ?
8 ? 2com/groupbyinc/flux/cluster/routing/UnassignedInfo ?
getDetails ? ?
? ? getIndexName ? ?
8 ? shardRestoreStatus BLcom/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus; restoreInProgress 5Lcom/groupbyinc/flux/cluster/RestoreInProgress$Entry; 4Lcom/groupbyinc/flux/cluster/routing/RecoverySource; (Lcom/groupbyinc/flux/snapshots/Snapshot; restoresInProgress /Lcom/groupbyinc/flux/cluster/RestoreInProgress; canForceAllocatePrimary primary ? n
8 ? =must not call canForceAllocatePrimary on a non-primary shard ? , -
? java/lang/Class ? desiredAssertionStatus ? n
? ?
ConstantValue Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses ! ? ! " # $ % ? > *+? '? ? ( ) * + ?
- . , - ? O *+-? 0? ? * ( ) 1 2 3 4 5 6 ? 2 , . ? ? +?