com.groupbyinc.flux.snapshots.RestoreService$1.class Maven / Gradle / Ivy
???? 4? .com/groupbyinc/flux/snapshots/RestoreService$1 2com/groupbyinc/flux/cluster/ClusterStateUpdateTask RestoreService.java ,com/groupbyinc/flux/snapshots/RestoreService restoreSnapshot k(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ;com/groupbyinc/flux/snapshots/RestoreService$RestoreRequest RestoreRequest :com/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder 2com/groupbyinc/flux/cluster/metadata/IndexMetaData Builder Icom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySource 2com/groupbyinc/flux/cluster/routing/RecoverySource SnapshotRecoverySource java/util/Map$Entry
java/util/Map Entry ;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder 3com/groupbyinc/flux/common/collect/ImmutableOpenMap 3com/groupbyinc/flux/cluster/RestoreInProgress$Entry ! -com/groupbyinc/flux/cluster/RestoreInProgress # 0com/groupbyinc/flux/cluster/ClusterState$Builder % (com/groupbyinc/flux/cluster/ClusterState ' 5com/groupbyinc/flux/cluster/metadata/MetaData$Builder ) -com/groupbyinc/flux/cluster/metadata/MetaData + 7com/groupbyinc/flux/cluster/block/ClusterBlocks$Builder - /com/groupbyinc/flux/cluster/block/ClusterBlocks / 8com/groupbyinc/flux/cluster/routing/RoutingTable$Builder 1 0com/groupbyinc/flux/cluster/routing/RoutingTable 3 @com/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus 5 ShardRestoreStatus 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom 8 Custom 4com/groupbyinc/flux/common/settings/Settings$Builder ; ,com/groupbyinc/flux/common/settings/Settings = =com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress$Entry ? 7com/groupbyinc/flux/cluster/SnapshotDeletionsInProgress A Fcom/groupbyinc/flux/snapshots/RestoreService$RestoreCompletionResponse C RestoreCompletionResponse /com/groupbyinc/flux/cluster/ClusterState$Custom F 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State H State 3com/groupbyinc/flux/cluster/RestoreInProgress$State K %java/lang/invoke/MethodHandles$Lookup M java/lang/invoke/MethodHandles O Lookup restoreInfo +Lcom/groupbyinc/flux/snapshots/RestoreInfo; val$snapshot (Lcom/groupbyinc/flux/snapshots/Snapshot; val$indices Ljava/util/Map; val$snapshotInfo ,Lcom/groupbyinc/flux/snapshots/SnapshotInfo; val$metaData /Lcom/groupbyinc/flux/cluster/metadata/MetaData; val$request =Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest; val$snapshotId *Lcom/groupbyinc/flux/snapshots/SnapshotId; val$listener +Lcom/groupbyinc/flux/action/ActionListener; this$0 .Lcom/groupbyinc/flux/snapshots/RestoreService; U(Lcom/groupbyinc/flux/snapshots/RestoreService;Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/util/Map;Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/snapshots/SnapshotId;Lcom/groupbyinc/flux/action/ActionListener;)V b c f T U h V W j X Y l Z [ n \ ] p ^ _ r ` a t ()V d v
w R S y this 0Lcom/groupbyinc/flux/snapshots/RestoreService$1; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; java/lang/Exception restore ? custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; ? ?
( ? entries ()Ljava/util/List; ? ?
$ ? java/util/List ? isEmpty ()Z ? ? ? ? Bcom/groupbyinc/flux/snapshots/ConcurrentSnapshotExecutionException ? 2Restore process is already running in this cluster ? =(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)V d ?
? ? snapshot_deletions ? hasDeletionsInProgress ? ?
B ? java/lang/StringBuilder ?
? w Dcannot restore a snapshot while a snapshot deletion is in-progress [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ?
getEntries ? ?
B ? get (I)Ljava/lang/Object; ? ? ? ? getSnapshot *()Lcom/groupbyinc/flux/snapshots/Snapshot; ? ?
@ ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] ? toString ()Ljava/lang/String; ? ?
? ? builder ^(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState$Builder; ? ?
( ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
( ? h(Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder; ? ?
, ? ;()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
0 ? blocks 3()Lcom/groupbyinc/flux/cluster/block/ClusterBlocks; ? ?
( ? l(Lcom/groupbyinc/flux/cluster/block/ClusterBlocks;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder; ? ?
. ? routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ? ?
( ? n(Lcom/groupbyinc/flux/cluster/routing/RoutingTable;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder; ? ?
4 ? java/util/HashSet ?
? w ? ?()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder; ? ?
? getNodes 3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes; ? ?
( ? /com/groupbyinc/flux/cluster/node/DiscoveryNodes ? getMaxNodeVersion ()Lcom/groupbyinc/flux/Version; ? ?
? ? com/groupbyinc/flux/Version ? minimumIndexCompatibilityVersion ? ?
? ? entrySet ()Ljava/util/Set; ? ? ?
java/util/Set ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? getValue ? ? java/lang/String checkPartial (Ljava/lang/String;)Z
*com/groupbyinc/flux/snapshots/SnapshotInfo version
?
Z(Lcom/groupbyinc/flux/snapshots/Snapshot;Lcom/groupbyinc/flux/Version;Ljava/lang/String;)V d
getKey ? index H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
,
access$200 m(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)Lcom/groupbyinc/flux/common/settings/Settings;
access$300 R(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)[Ljava/lang/String;
updateIndexSettings ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/common/settings/Settings;[Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;
!
access$400 r(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;#$
% @com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService' upgradeIndexMetaData ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/Version;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)*
(+ 6com/groupbyinc/flux/snapshots/SnapshotRestoreException- cannot restore index [/ ] because it cannot be upgraded1 R(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;Ljava/lang/Throwable;)V d3
.4 7com/groupbyinc/flux/common/carrotsearch/hppc/IntHashSet6
7 w ?com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService9 validateIndexName ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)V;<
:=
access$500 q(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;?@
A getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;CD
E validateIndexSettings C(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)VGH
:I r(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?K
L OPEN :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;NO IP state x(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;RS
T P(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;V
W 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder; ?Y
>Z put f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;\]
<^
index.uuid` com/groupbyinc/flux/common/UUIDsb randomBase64UUIDd ?
ce \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;\g
<h settings t(Lcom/groupbyinc/flux/common/settings/Settings$Builder;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;jk
l includeAliasesn ?
o
getAliases 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;qr
s
? removeAllAliases >()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;vw
x 3com/groupbyinc/flux/common/carrotsearch/hppc/IntSetz keys F()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer;|}
~ Bcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer?? ? Acom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor? value Ljava/lang/Object;?? ?? add (Ljava/lang/Object;)Z?? ?? build 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;??
? populateIgnoredShards J(Ljava/lang/String;Lcom/groupbyinc/flux/common/carrotsearch/hppc/IntSet;)V??
? addAsNewRestore ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/RecoverySource$SnapshotRecoverySource;Lcom/groupbyinc/flux/common/carrotsearch/hppc/IntSet;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder;??
2? addBlocks o(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;??
.? n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Z)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;\?
*? getIndex #()Lcom/groupbyinc/flux/index/Index;??
? validateExistingIndex ~(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;Z)V??
?
getVersion ()J??
? java/lang/Math? max (JJ)J??
?? ?(J)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;
?
? values @()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;??
?