com.groupbyinc.flux.snapshots.SnapshotsService$1.class Maven / Gradle / Ivy
???? 4/ 0com/groupbyinc/flux/snapshots/SnapshotsService$1 2com/groupbyinc/flux/cluster/ClusterStateUpdateTask SnapshotsService.java .com/groupbyinc/flux/snapshots/SnapshotsService createSnapshot ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest;Lcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)V 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry /com/groupbyinc/flux/cluster/SnapshotsInProgress
Entry >com/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest SnapshotRequest Ecom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener CreateSnapshotListener /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names /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 newSnapshot 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry; val$request @Lcom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest; val$repositoryName Ljava/lang/String; val$snapshotName val$repositoryData 1Lcom/groupbyinc/flux/repositories/RepositoryData; val$snapshotId *Lcom/groupbyinc/flux/snapshots/SnapshotId; val$listener GLcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener; this$0 0Lcom/groupbyinc/flux/snapshots/SnapshotsService; 9(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/repositories/RepositoryData;Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)V 8 9 < - . > / 0 @ 1 0 B 2 3 D 4 5 F 6 7 H ()V : J
K + , M this 2Lcom/groupbyinc/flux/snapshots/SnapshotsService$1; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState;
access$200 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest;Lcom/groupbyinc/flux/cluster/ClusterState;)V S T
U snapshot_deletions W custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; Y Z
[ 7com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress ] hasDeletionsInProgress ()Z _ `
^ a Bcom/groupbyinc/flux/snapshots/ConcurrentSnapshotExecutionException c 8cannot snapshot while a snapshot deletion is in-progress e 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V : g
d h snapshots j entries ()Ljava/util/List; l m
n java/util/List p isEmpty r ` q s
access$300 t(Lcom/groupbyinc/flux/snapshots/SnapshotsService;)Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; u v
w indicesOptions 5()Lcom/groupbyinc/flux/action/support/IndicesOptions; y z
{ indices ()[Ljava/lang/String; } ~
@com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? concreteIndexNames ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;)[Ljava/lang/String; ? ?
? ? java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ?
access$400 S(Lcom/groupbyinc/flux/snapshots/SnapshotsService;)Lorg/apache/logging/log4j/Logger; ? ?
? +[{}][{}] creating snapshot for indices [{}] ? org/apache/logging/log4j/Logger ? trace K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? /com/groupbyinc/flux/repositories/RepositoryData ? resolveNewIndices "(Ljava/util/List;)Ljava/util/List; ? ?
? ? &com/groupbyinc/flux/snapshots/Snapshot ? ?(Ljava/lang/String;Lcom/groupbyinc/flux/snapshots/SnapshotId;)V : ?
? ? includeGlobalState ? `
? partial ? `
? INIT 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; ? ? ! ? java/lang/System ? currentTimeMillis ()J ? ?
? ? getGenId ? ?
? ? ?(Lcom/groupbyinc/flux/snapshots/Snapshot;ZZLcom/groupbyinc/flux/cluster/SnapshotsInProgress$State;Ljava/util/List;JJLcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)V : ?
? ;([Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;)V : ?
? a snapshot is already running ? builder ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
? putCustom w(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState$Custom;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
$ ? build ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
$ ? $Ljava/util/List; Ljava/util/List; snapshotIndices ; currentState *Lcom/groupbyinc/flux/cluster/ClusterState; deletionsInProgress 9Lcom/groupbyinc/flux/cluster/SnapshotDeletionsInProgress; 1Lcom/groupbyinc/flux/cluster/SnapshotsInProgress; onFailure *(Ljava/lang/String;Ljava/lang/Exception;)V
access$500 ? ?
? "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 P(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/logging/log4j/message/Message; ? ?
? ? get U(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/logging/log4j/util/MessageSupplier; ? ? ? warn G(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V ? ? ? ? (Ljava/lang/Exception;)V ? ? ? source e Ljava/lang/Exception; clusterStateProcessed i(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/ClusterState;)V
access$600 ](Lcom/groupbyinc/flux/snapshots/SnapshotsService;)Lcom/groupbyinc/flux/threadpool/ThreadPool; ? ?
? snapshot ? executor :(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService; ? ?
? J lambda$clusterStateProcessed$1 ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest;Lcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)V
run ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService$1;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest;Lcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)Ljava/lang/Runnable; $java/util/concurrent/ExecutorService (Ljava/lang/Runnable;)V Q
oldState newState timeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; masterNodeTimeout
access$700 ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;ZLcom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener;)V
request listener 5org/apache/logging/log4j/message/ParameterizedMessage "[{}][{}] failed to create snapshot 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V :!
" repositoryName snapshotName Code LocalVariableTable LineNumberTable LocalVariableTypeTable
StackMapTable BootstrapMethods
SourceFile EnclosingMethod InnerClasses + , - . / 0 1 0 2 3 4 5 6 7 8 9 : ; &