
com.groupbyinc.flux.snapshots.RestoreService$1.class Maven / Gradle / Ivy
???? 3[ .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 java/util/Map$Entry
java/util/Map Entry Ecom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder =com/groupbyinc/flux/common/google/common/collect/ImmutableMap 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 , 0com/groupbyinc/flux/cluster/routing/RoutingTable . Gcom/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation$Result 0 @com/groupbyinc/flux/cluster/routing/allocation/RoutingAllocation 2 Result @com/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus 5 ShardRestoreStatus 4com/groupbyinc/flux/common/settings/Settings$Builder 8 ,com/groupbyinc/flux/common/settings/Settings : 4com/groupbyinc/flux/cluster/metadata/MetaData$Custom < Custom /com/groupbyinc/flux/cluster/ClusterState$Custom ? 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State A State 3com/groupbyinc/flux/cluster/RestoreInProgress$State D restoreInfo +Lcom/groupbyinc/flux/snapshots/RestoreInfo; val$snapshotId 1Lcom/groupbyinc/flux/cluster/metadata/SnapshotId; val$renamedIndices Ljava/util/Map; val$snapshot (Lcom/groupbyinc/flux/snapshots/Snapshot; val$metaData /Lcom/groupbyinc/flux/cluster/metadata/MetaData; val$request =Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest; val$listener +Lcom/groupbyinc/flux/action/ActionListener; this$0 .Lcom/groupbyinc/flux/snapshots/RestoreService; 0(Lcom/groupbyinc/flux/snapshots/RestoreService;Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Ljava/util/Map;Lcom/groupbyinc/flux/snapshots/Snapshot;Lcom/groupbyinc/flux/cluster/metadata/MetaData;Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/action/ActionListener;)V T U X H I Z J K \ L M ^ N O ` P Q b R S d ()V V f
g F G i this 0Lcom/groupbyinc/flux/snapshots/RestoreService$1; execute V(Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/ClusterState; java/lang/Exception o restore q custom E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom; s t
# u entries ()Ljava/util/List; w x
y java/util/List { isEmpty ()Z } ~ | Bcom/groupbyinc/flux/snapshots/ConcurrentSnapshotExecutionException ? 2Restore process is already running in this cluster ? F(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Ljava/lang/String;)V V ?
? ? 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; ? ?
+ ? 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; ? ?
/ ? 5com/groupbyinc/flux/common/google/common/collect/Sets ?
newHashSet ()Ljava/util/HashSet; ? ?
? ? I()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap$Builder; ? ?
? 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 ? ?
? 1com/groupbyinc/flux/cluster/routing/RestoreSource ? &com/groupbyinc/flux/snapshots/Snapshot ? version ()Lcom/groupbyinc/flux/Version; ? ?
? ? c(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/Version;Ljava/lang/String;)V V ?
? ? getKey ? ? ? index H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
' ?
access$000 m(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)Lcom/groupbyinc/flux/common/settings/Settings; ? ?
?
access$100 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$200 r(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService; ? ?
? @com/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService ? upgradeIndexMetaData j(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? 6com/groupbyinc/flux/snapshots/SnapshotRestoreException ? java/lang/StringBuilder ?
? g cannot restore index [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? ] because it cannot be upgraded ? toString ()Ljava/lang/String; ?
? [(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Ljava/lang/String;Ljava/lang/Throwable;)V V
? 7com/groupbyinc/flux/common/carrotsearch/hppc/IntHashSet
g
access$300 q(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;
?com/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService
validateIndexName ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)V
getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings;
validateIndexSettings C(Ljava/lang/String;Lcom/groupbyinc/flux/common/settings/Settings;)V
r(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?
OPEN :Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State; B state x(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$State;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;"#
$ P(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ?&
' settingsBuilder 8()Lcom/groupbyinc/flux/common/settings/Settings$Builder;)*
;+ put f(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;-.
9/
index.uuid1 "com/groupbyinc/flux/common/Strings3 randomBase64UUID5
46 \(Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/common/settings/Settings$Builder;-8
99 settings t(Lcom/groupbyinc/flux/common/settings/Settings$Builder;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;;<
= includeAliases? ~
@
getAliases 7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;BC
D 3com/groupbyinc/flux/common/collect/ImmutableOpenMapF
G removeAllAliases >()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder;IJ
K 3com/groupbyinc/flux/common/carrotsearch/hppc/IntSetM keys F()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainer;OP
GQ Bcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectLookupContainerST ? Acom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursorV value Ljava/lang/Object;XY WZ add (Ljava/lang/Object;)Z\] ?^ build 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;`a
b populateIgnoredShards J(Ljava/lang/String;Lcom/groupbyinc/flux/common/carrotsearch/hppc/IntSet;)Vde
f addAsNewRestore ?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/routing/RestoreSource;Lcom/groupbyinc/flux/common/carrotsearch/hppc/IntSet;)Lcom/groupbyinc/flux/cluster/routing/RoutingTable$Builder;hi
-j addBlocks o(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)Lcom/groupbyinc/flux/cluster/block/ClusterBlocks$Builder;lm
)n n(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Z)Lcom/groupbyinc/flux/cluster/metadata/MetaData$Builder;-p
%q validateExistingIndex ~(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Ljava/lang/String;Z)Vst
u
getVersion ()Jwx
y java/lang/Math{ max (JJ)J}~
| ?(J)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData$Builder; ??
? values @()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;??
G?