
com.groupbyinc.flux.snapshots.SnapshotsService$2.class Maven / Gradle / Ivy
???? 35 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 /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 accepted Z updatedSnapshot 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry; failure Ljava/lang/String; 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 + , / ' $ 1 ( " 3 ) * 5 ()V - 7
8 ! " : % & < this 2Lcom/groupbyinc/flux/snapshots/SnapshotsService$2; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; snapshots B custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; D E
F java/util/ArrayList H
I 8 entries ()Ljava/util/List; K L
M java/util/List O iterator ()Ljava/util/Iterator; Q R P S java/util/Iterator U hasNext ()Z W X V Y next ()Ljava/lang/Object; [ \ V ]
snapshotId 3()Lcom/groupbyinc/flux/cluster/metadata/SnapshotId; _ `
a /com/groupbyinc/flux/cluster/metadata/SnapshotId c equals (Ljava/lang/Object;)Z e f
d g indices i L
j
access$800 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/List;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; l m
n metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; p q
r
access$900 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/common/collect/Tuple; t u
v (com/groupbyinc/flux/common/collect/Tuple x v1 z \
y {
java/util/Set } v2 \
y ? isEmpty ? X ~ ? =com/groupbyinc/flux/common/google/common/collect/ImmutableMap ? java/lang/StringBuilder ?
? 8 FAILED 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; ? ? ? ?(Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State;Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;)V - ?
? # $ ? add ? f P ? "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 ? ? ? values H()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableCollection; ? ?
? ? completed (Ljava/util/Collection;)Z ? ?
? 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 - ?
? 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/google/common/collect/ImmutableMap; ?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap; entry currentState *Lcom/groupbyinc/flux/cluster/ClusterState; 1Lcom/groupbyinc/flux/cluster/SnapshotsInProgress; ILjava/util/List; Ljava/util/List; onFailure *(Ljava/lang/String;Ljava/lang/Throwable;)V java/lang/Throwable ? access$1000 _(Lcom/groupbyinc/flux/snapshots/SnapshotsService;)Lcom/groupbyinc/flux/common/logging/ESLogger; ? ?
? [{}] failed to create snapshot ? java/lang/Object ? +com/groupbyinc/flux/common/logging/ESLogger ? warn =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V ? ? ? ? access$1100 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Ljava/lang/Throwable;)V ? ?
? access$1200 h(Lcom/groupbyinc/flux/snapshots/SnapshotsService;)Lcom/groupbyinc/flux/repositories/RepositoriesService; ? ?
?
getRepository ? ?
d ? 4com/groupbyinc/flux/repositories/RepositoriesService ?
repository A(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/Repository; ? ?
? ? startTime ()J
$com/groupbyinc/flux/ExceptionsHelper detailedMessage )(Ljava/lang/Throwable;)Ljava/lang/String;
emptyList
L
? +com/groupbyinc/flux/repositories/Repository
finalizeSnapshot ?(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Ljava/util/List;JLjava/lang/String;ILjava/util/List;)Lcom/groupbyinc/flux/snapshots/Snapshot; access$1300 ?
+[{}] failed to close snapshot in repository ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? (Ljava/lang/Throwable;)V ? t2 Ljava/lang/Throwable; source t clusterStateProcessed i(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;)V
onResponse$ 7 % access$1400 |(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;Ljava/lang/String;)V'(
) oldState newState Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable
SourceFile EnclosingMethod InnerClasses ! " # $ % &