com.groupbyinc.flux.snapshots.SnapshotsService$6.class Maven / Gradle / Ivy
???? 4M 0com/groupbyinc/flux/snapshots/SnapshotsService$6 2com/groupbyinc/flux/cluster/ClusterStateUpdateTask SnapshotsService.java .com/groupbyinc/flux/snapshots/SnapshotsService deleteSnapshot t(Lcom/groupbyinc/flux/snapshots/Snapshot;Lcom/groupbyinc/flux/snapshots/SnapshotsService$DeleteSnapshotListener;JZ)V 2com/groupbyinc/flux/snapshots/SnapshotsService$6$1 Ecom/groupbyinc/flux/snapshots/SnapshotsService$DeleteSnapshotListener
DeleteSnapshotListener =com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress$Entry 7com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress Entry Ccom/groupbyinc/flux/cluster/SnapshotsInProgress$ShardSnapshotStatus /com/groupbyinc/flux/cluster/SnapshotsInProgress ShardSnapshotStatus ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 3com/groupbyinc/flux/common/collect/ImmutableOpenMap Builder 5com/groupbyinc/flux/cluster/SnapshotsInProgress$State State 5com/groupbyinc/flux/cluster/SnapshotsInProgress$Entry " 0com/groupbyinc/flux/cluster/ClusterState$Builder $ (com/groupbyinc/flux/cluster/ClusterState & /com/groupbyinc/flux/cluster/ClusterState$Custom ( Custom Icom/groupbyinc/flux/snapshots/SnapshotsService$SnapshotCompletionListener + SnapshotCompletionListener waitForSnapshot Z val$snapshot (Lcom/groupbyinc/flux/snapshots/Snapshot; val$repositoryStateId J val$listener GLcom/groupbyinc/flux/snapshots/SnapshotsService$DeleteSnapshotListener; this$0 0Lcom/groupbyinc/flux/snapshots/SnapshotsService; ?(Lcom/groupbyinc/flux/snapshots/SnapshotsService;Lcom/groupbyinc/flux/common/Priority;Lcom/groupbyinc/flux/snapshots/Snapshot;JLcom/groupbyinc/flux/snapshots/SnapshotsService$DeleteSnapshotListener;)V 6 7 : 0 1 < 2 3 > 4 5 @ ((Lcom/groupbyinc/flux/common/Priority;)V 8 B
C . / E this 2Lcom/groupbyinc/flux/snapshots/SnapshotsService$6; priority %Lcom/groupbyinc/flux/common/Priority; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; java/lang/Exception M snapshot_deletions O custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; Q R
' S hasDeletionsInProgress ()Z U V
W Bcom/groupbyinc/flux/snapshots/ConcurrentSnapshotExecutionException Y ;cannot delete - another snapshot is currently being deleted [ =(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)V 8 ]
Z ^ restore ` -com/groupbyinc/flux/cluster/RestoreInProgress b entries ()Ljava/util/List; d e
c f java/util/List h isEmpty j V i k 'cannot delete snapshot during a restore m builder ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; o p
' q snapshots s snapshot a(Lcom/groupbyinc/flux/snapshots/Snapshot;)Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$Entry; u v
w
f 3another snapshot is currently running cannot delete z java/lang/System | currentTimeMillis ()J ~
} ? -(Lcom/groupbyinc/flux/snapshots/Snapshot;JJ)V 8 ?
? withAddedEntry z(Lcom/groupbyinc/flux/cluster/SnapshotDeletionsInProgress$Entry;)Lcom/groupbyinc/flux/cluster/SnapshotDeletionsInProgress; ? ?
? newInstance ? ?
? putCustom w(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState$Custom;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
% ? state 9()Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; ? ?
# ? INIT 7Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State; ? ? ? shards 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap; ? ?
# ? STARTED ? ? ? ?()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; o ?
? iterator ()Ljava/util/Iterator; ? ?
? java/util/Iterator ? hasNext ? V ? ? next ()Ljava/lang/Object; ? ? ? ? Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor ? value Ljava/lang/Object; ? ? ? ?
? completed ? V
? nodeId ()Ljava/lang/String; ? ?
? ABORTED ? ? ? aborted by snapshot deletion ? ^(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/SnapshotsInProgress$State;Ljava/lang/String;)V 8 ?
? key ? ? ? ? 'com/groupbyinc/flux/index/shard/ShardId ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ?
? build ? ?
? values @()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer; ? ?
?