com.groupbyinc.flux.snapshots.SnapshotsService.class Maven / Gradle / Ivy
???? 4? .com/groupbyinc/flux/snapshots/SnapshotsService ?com/groupbyinc/flux/common/component/AbstractLifecycleComponent /com/groupbyinc/flux/cluster/ClusterStateApplier SnapshotsService.java >com/groupbyinc/flux/snapshots/SnapshotsService$SnapshotRequest SnapshotRequest Icom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotCompletionListener SnapshotCompletionListener Ecom/groupbyinc/flux/snapshots/SnapshotsService$DeleteSnapshotListener DeleteSnapshotListener Ecom/groupbyinc/flux/snapshots/SnapshotsService$CreateSnapshotListener CreateSnapshotListener Hcom/groupbyinc/flux/snapshots/SnapshotsService$CleanupAfterErrorListener CleanupAfterErrorListener 0com/groupbyinc/flux/snapshots/SnapshotsService$7 0com/groupbyinc/flux/snapshots/SnapshotsService$6 0com/groupbyinc/flux/snapshots/SnapshotsService$5 0com/groupbyinc/flux/snapshots/SnapshotsService$4 0com/groupbyinc/flux/snapshots/SnapshotsService$3 0com/groupbyinc/flux/snapshots/SnapshotsService$2 ! 0com/groupbyinc/flux/snapshots/SnapshotsService$1 # 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry % /com/groupbyinc/flux/cluster/SnapshotsInProgress ' Entry 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder * -com/groupbyinc/flux/cluster/metadata/MetaData , Builder =com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress$Entry / 7com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress 1 Ccom/groupbyinc/flux/cluster/SnapshotsInProgress$ShardSnapshotStatus 3 ShardSnapshotStatus ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 6 3com/groupbyinc/flux/common/collect/ImmutableOpenMap 8 /com/groupbyinc/flux/threadpool/ThreadPool$Names : )com/groupbyinc/flux/threadpool/ThreadPool < Names 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom ? Custom /com/groupbyinc/flux/cluster/ClusterState$Custom B (com/groupbyinc/flux/cluster/ClusterState D 5com/groupbyinc/flux/cluster/SnapshotsInProgress$State F State 5com/groupbyinc/flux/cluster/node/DiscoveryNodes$Delta I /com/groupbyinc/flux/cluster/node/DiscoveryNodes K Delta 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State N 2com/groupbyinc/flux/cluster/metadata/IndexMetaData P %java/lang/invoke/MethodHandles$Lookup R java/lang/invoke/MethodHandles T Lookup clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; repositoriesService 6Lcom/groupbyinc/flux/repositories/RepositoriesService;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; snapshotCompletionListeners +Ljava/util/concurrent/CopyOnWriteArrayList; xLjava/util/concurrent/CopyOnWriteArrayList; $assertionsDisabled Z (Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V d g
h )java/util/concurrent/CopyOnWriteArrayList j ()V d l
k m _ ` o W X q Y Z s [ \ u ] ^ w .com/groupbyinc/flux/cluster/node/DiscoveryNode y isMasterNode 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z { |
z } 2com/groupbyinc/flux/cluster/service/ClusterService addLowPriorityApplier 4(Lcom/groupbyinc/flux/cluster/ClusterStateApplier;)V ? ?
? ? ,com/groupbyinc/flux/common/settings/Settings ? @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? 4com/groupbyinc/flux/repositories/RepositoriesService ? this 0Lcom/groupbyinc/flux/snapshots/SnapshotsService; settings .Lcom/groupbyinc/flux/common/settings/Settings; getRepositoryData E(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/RepositoryData;
repository A(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/Repository; ? ?
? ? b c ? java/lang/AssertionError ?
? m +com/groupbyinc/flux/repositories/Repository ? 3()Lcom/groupbyinc/flux/repositories/RepositoryData; ? ? ? ? repositoryName Ljava/lang/String; -Lcom/groupbyinc/flux/repositories/Repository; snapshot j(Ljava/lang/String;Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lcom/groupbyinc/flux/snapshots/SnapshotInfo; (com/groupbyinc/flux/snapshots/SnapshotId ? getName ()Ljava/lang/String; ? ?
? ? java/util/Collections ?
singletonList $(Ljava/lang/Object;)Ljava/util/List; ? ?
? ? currentSnapshots 4(Ljava/lang/String;Ljava/util/List;)Ljava/util/List; ? ?
? java/util/List ? isEmpty ()Z ? ? ? ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? next ()Ljava/lang/Object; ? ? ? ? inProgressSnapshot e(Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry;)Lcom/groupbyinc/flux/snapshots/SnapshotInfo; ? ?
? getSnapshotInfo X(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lcom/groupbyinc/flux/snapshots/SnapshotInfo; ? ? ? ?
snapshotId *Lcom/groupbyinc/flux/snapshots/SnapshotId; entries ILjava/util/List; Ljava/util/List; snapshots D(Ljava/lang/String;Ljava/util/List;Ljava/util/Set;Z)Ljava/util/List; java/lang/Exception ? java/util/HashSet ?
? m (Ljava/util/Collection;)V d ?
? ?
java/util/Set ? stream ()Ljava/util/stream/Stream; ? ? ? ? "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; ? ?
? ? ? &(Ljava/lang/Object;)Ljava/lang/Object; ? ? >(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Ljava/lang/String; ? apply ()Ljava/util/function/Function; ? ? ? java/util/stream/Stream ? map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream; ? ? ? ? java/util/stream/Collectors ? toList ()Ljava/util/stream/Collector; ? ?
? ? collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object; ? ? ? ? java/lang/String hasNext ? ? add (Ljava/lang/Object;)Z ? *()Lcom/groupbyinc/flux/snapshots/Snapshot; ?
& &com/groupbyinc/flux/snapshots/Snapshot
getSnapshotId ,()Lcom/groupbyinc/flux/snapshots/SnapshotId;
remove ? ? ? contains ? *com/groupbyinc/flux/snapshots/SnapshotInfo incompatible ?
logger !Lorg/apache/logging/log4j/Logger; ! ,()Lorg/apache/logging/log4j/message/Message;# lambda$snapshots$0 V(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lorg/apache/logging/log4j/message/Message;%&
'( get [(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lorg/apache/logging/log4j/util/MessageSupplier;*+ , org/apache/logging/log4j/Logger. warn G(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V01/2 /com/groupbyinc/flux/snapshots/SnapshotException4 Snapshot could not be read6 f(Ljava/lang/String;Lcom/groupbyinc/flux/snapshots/SnapshotId;Ljava/lang/String;Ljava/lang/Throwable;)V d8
59 java/util/ArrayList;
<