com.groupbyinc.flux.snapshots.SnapshotsService$2.class Maven / Gradle / Ivy
???? 4V 0com/groupbyinc/flux/snapshots/SnapshotsService$2 2com/groupbyinc/flux/cluster/ClusterStateUpdateTask SnapshotsService.java .com/groupbyinc/flux/snapshots/SnapshotsService
beginSnapshot ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;ZLcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)V 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry /com/groupbyinc/flux/cluster/SnapshotsInProgress
Entry Ecom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener CreateSnapshotListener Ccom/groupbyinc/flux/cluster/SnapshotsInProgress$ShardSnapshotStatus ShardSnapshotStatus Hcom/groupbyinc/flux/snapshots/SnapshotsService$CleanupAfterErrorListener CleanupAfterErrorListener /com/groupbyinc/flux/cluster/ClusterState$Custom (com/groupbyinc/flux/cluster/ClusterState Custom 5com/groupbyinc/flux/cluster/SnapshotsInProgress$State State 0com/groupbyinc/flux/cluster/ClusterState$Builder ! Builder %java/lang/invoke/MethodHandles$Lookup $ java/lang/invoke/MethodHandles & Lookup endSnapshot 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry; failure Ljava/lang/String; $assertionsDisabled Z val$snapshot val$partial val$userCreateSnapshotListener GLcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener; this$0 0Lcom/groupbyinc/flux/snapshots/SnapshotsService; ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;ZLcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)V 3 4 7 / * 9 0 . ; 1 2 = ()V 5 ?
@ + , B this 2Lcom/groupbyinc/flux/snapshots/SnapshotsService$2; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; snapshots H custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; J K
L java/util/ArrayList N
O @ entries ()Ljava/util/List; Q R
S java/util/List U iterator ()Ljava/util/Iterator; W X V Y java/util/Iterator [ hasNext ()Z ] ^ \ _ next ()Ljava/lang/Object; a b \ c snapshot *()Lcom/groupbyinc/flux/snapshots/Snapshot; e f
g &com/groupbyinc/flux/snapshots/Snapshot i equals (Ljava/lang/Object;)Z k l
j m add o l V p state 9()Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; r s
t ABORTED 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; v w x indices z R
{
access$800 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/List;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; } ~
metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
?
access$900 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/common/collect/Tuple; ? ?
? (com/groupbyinc/flux/common/collect/Tuple ? v1 ? b
? ?
java/util/Set ? v2 ? b
? ? isEmpty ? ^ ? ? 3com/groupbyinc/flux/common/collect/ImmutableOpenMap ? FAILED ? w ? ?(Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)V 5 ?
? ) * ? java/lang/StringBuilder ?
? @ "Indices don't have primary shards ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? length ()I ? ?
? ? ; ? Indices are closed ? toString ()Ljava/lang/String; ? ?
? ? STARTED ? w ? values @()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer; ? ?
? ? completed A(Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;)Z ? ?
? - . ? java/lang/AssertionError ? 6expecting snapshot to be aborted during initialization ? (Ljava/lang/Object;)V 5 ?
? ? *snapshot was aborted during initialization ? builder ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
? java/util/Collections ? unmodifiableList "(Ljava/util/List;)Ljava/util/List; ? ?
? ? (Ljava/util/List;)V 5 ?
? putCustom w(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState$Custom;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
" ? build ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
" ? failureMessage Ljava/lang/StringBuilder; indicesWithMissingShards rLcom/groupbyinc/flux/common/collect/Tuple;Ljava/util/Set;>; *Lcom/groupbyinc/flux/common/collect/Tuple; missing #Ljava/util/Set; Ljava/util/Set; closed shards ?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; 5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; updatedSnapshot entry currentState *Lcom/groupbyinc/flux/cluster/ClusterState; 1Lcom/groupbyinc/flux/cluster/SnapshotsInProgress; ILjava/util/List; Ljava/util/List; onFailure *(Ljava/lang/String;Ljava/lang/Exception;)V access$1000 S(Lcom/groupbyinc/flux/snapshots/SnapshotsService;)Lorg/apache/logging/log4j/Logger; ? ?
? "java/lang/invoke/LambdaMetafactory ? metafactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite; ? ?
? ,()Lorg/apache/logging/log4j/message/Message; lambda$onFailure$0 c(Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;)Lorg/apache/logging/log4j/message/Message;
get h(Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;)Lorg/apache/logging/log4j/util/MessageSupplier;
org/apache/logging/log4j/Logger warn G(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;ZLcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;Ljava/lang/Exception;)V 5
access$1100 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/snapshots/Snapshot;Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Ljava/lang/Exception;Lcom/groupbyinc/flux/snapshots/SnapshotsService$CleanupAfterErrorListener;)V
source e Ljava/lang/Exception; onNoLongerMaster (Ljava/lang/String;)V access$1200 ?
! 3[{}] failed to create snapshot - no longer a master#
getSnapshotId ,()Lcom/groupbyinc/flux/snapshots/SnapshotId;%&
j' '(Ljava/lang/String;Ljava/lang/Object;)V)* /com/groupbyinc/flux/snapshots/SnapshotException, -master changed during snapshot initialization. =(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)V 50
-1 (Ljava/lang/Exception;)V ?3 4 clusterStateProcessed i(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;)V
onResponse8 ? 9 access$1300 |(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;Ljava/lang/String;)V;<
= oldState newState 5org/apache/logging/log4j/message/ParameterizedMessageA [{}] failed to create snapshotC 5)
BE java/lang/ClassH desiredAssertionStatusJ ^
IK Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable BootstrapMethods
SourceFile EnclosingMethod InnerClasses ) * + , - . / * 0 . 1 2 3 4 5 6 M W *+? 8*,? :*? <*? >*? A*? C? N D E 3 4 O
u x F G M k ?+I? M? M? OY? PN,? T? Z :? ` ?]? d ? :? h*? :? h? n? -? q W???? u? y? ?*? 8+? |? ?:*?