All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.groupbyinc.flux.snapshots.RestoreService.class Maven / Gradle / Ivy

????4?,com/groupbyinc/flux/snapshots/RestoreService6com/groupbyinc/flux/common/component/AbstractComponent/com/groupbyinc/flux/cluster/ClusterStateApplierRestoreService.java;com/groupbyinc/flux/snapshots/RestoreService$RestoreRequestRestoreRequestJcom/groupbyinc/flux/snapshots/RestoreService$CleanRestoreStateTaskExecutorCleanRestoreStateTaskExecutorEcom/groupbyinc/flux/snapshots/RestoreService$RestoreInProgressUpdaterRestoreInProgressUpdaterFcom/groupbyinc/flux/snapshots/RestoreService$RestoreCompletionResponseRestoreCompletionResponse.com/groupbyinc/flux/snapshots/RestoreService$1;com/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder3com/groupbyinc/flux/common/collect/ImmutableOpenMapBuilder3com/groupbyinc/flux/cluster/RestoreInProgress$Entry-com/groupbyinc/flux/cluster/RestoreInProgressEntry@com/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus ShardRestoreStatus3com/groupbyinc/flux/cluster/RestoreInProgress$State#StateOcom/groupbyinc/flux/snapshots/RestoreService$CleanRestoreStateTaskExecutor$Task&Task/com/groupbyinc/flux/cluster/ClusterState$Custom)(com/groupbyinc/flux/cluster/ClusterState+Custom%java/lang/invoke/MethodHandles$Lookup.java/lang/invoke/MethodHandles0LookupUNMODIFIABLE_SETTINGSLjava/util/Set;#Ljava/util/Set;UNREMOVABLE_SETTINGSclusterService4Lcom/groupbyinc/flux/cluster/service/ClusterService;repositoriesService6Lcom/groupbyinc/flux/repositories/RepositoriesService;allocationServiceBLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;createIndexServiceALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;metaDataIndexUpgradeServiceBLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;clusterSettings5Lcom/groupbyinc/flux/common/settings/ClusterSettings;cleanRestoreStateTaskExecutorLLcom/groupbyinc/flux/snapshots/RestoreService$CleanRestoreStateTaskExecutor;$assertionsDisabledZ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;Lcom/groupbyinc/flux/common/settings/ClusterSettings;)V*Lcom/groupbyinc/flux/common/inject/Inject;1(Lcom/groupbyinc/flux/common/settings/Settings;)VGJ
K78	M9:	O;<	Q=>	S?@	U2com/groupbyinc/flux/cluster/service/ClusterServiceWaddStateApplier4(Lcom/groupbyinc/flux/cluster/ClusterStateApplier;)VYZ
X[AB	]logger8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;_`	a;(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)VGc
dCD	fthis.Lcom/groupbyinc/flux/snapshots/RestoreService;settings.Lcom/groupbyinc/flux/common/settings/Settings;restoreSnapshotk(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/action/ActionListener;)Vjava/lang/Exceptionn
access$000Q(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)Ljava/lang/String;pq
	r4com/groupbyinc/flux/repositories/RepositoriesServicet
repositoryA(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/Repository;vw
ux+com/groupbyinc/flux/repositories/RepositoryzgetRepositoryData3()Lcom/groupbyinc/flux/repositories/RepositoryData;|}{~/com/groupbyinc/flux/repositories/RepositoryData?getIncompatibleSnapshotIds()Ljava/util/Collection;??
??java/util/Collection?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;)Z?lambda$restoreSnapshot$0j(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/snapshots/SnapshotId;)Z??
??-(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Z?test](Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)Ljava/util/function/Predicate;???java/util/stream/Stream?filter9(Ljava/util/function/Predicate;)Ljava/util/stream/Stream;????	findFirst()Ljava/util/Optional;????java/util/Optional?	isPresent()Z??
??6com/groupbyinc/flux/snapshots/SnapshotRestoreException?
access$100?q
	?$cannot restore incompatible snapshot?9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)VG?
??getSnapshotIds??
??lambda$restoreSnapshot$1??
???snapshot does not exist?get()Ljava/lang/Object;??
??(com/groupbyinc/flux/snapshots/SnapshotId?getSnapshotInfoX(Lcom/groupbyinc/flux/snapshots/SnapshotId;)Lcom/groupbyinc/flux/snapshots/SnapshotInfo;??{?&com/groupbyinc/flux/snapshots/Snapshot??(Ljava/lang/String;Lcom/groupbyinc/flux/snapshots/SnapshotId;)VG?
??*com/groupbyinc/flux/snapshots/SnapshotInfo?indices()Ljava/util/List;??
??()[Ljava/lang/String;??
	?indicesOptions5()Lcom/groupbyinc/flux/action/support/IndicesOptions;??
	?+com/groupbyinc/flux/snapshots/SnapshotUtils?
filterIndicesh(Ljava/util/List;[Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;)Ljava/util/List;??
??resolveIndices"(Ljava/util/List;)Ljava/util/List;??
??getSnapshotMetaDatam(Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/metadata/MetaData;??{?validateSnapshotRestorableA(Ljava/lang/String;Lcom/groupbyinc/flux/snapshots/SnapshotInfo;)V??
?renamedIndices^(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Ljava/util/List;)Ljava/util/Map;??
?cause()Ljava/lang/String;??
	?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G?
?submitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;)V??
X?)com/groupbyinc/flux/action/ActionListener?lambda$restoreSnapshot$2Q(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)Ljava/lang/Object;
~(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;?	
6com/groupbyinc/flux/common/apache/logging/log4j/LoggerwarnW(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V
	onFailure(Ljava/lang/Exception;)V-Lcom/groupbyinc/flux/repositories/Repository;repositoryData1Lcom/groupbyinc/flux/repositories/RepositoryData;incompatibleSnapshotId@Ljava/util/Optional;Ljava/util/Optional;matchingSnapshotId
snapshotId*Lcom/groupbyinc/flux/snapshots/SnapshotId;snapshotInfo,Lcom/groupbyinc/flux/snapshots/SnapshotInfo;snapshot(Lcom/groupbyinc/flux/snapshots/Snapshot;filteredIndices$Ljava/util/List;Ljava/util/List;metaData/Lcom/groupbyinc/flux/cluster/metadata/MetaData;5Ljava/util/Map;Ljava/util/Map;eLjava/lang/Exception;request=Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;listeneruLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;$updateRestoreStateWithDeletedIndiceso(Lcom/groupbyinc/flux/cluster/RestoreInProgress;Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/RestoreInProgress;java/util/ArrayList3()VG5
46entries8?
9java/util/List;iterator()Ljava/util/Iterator;=><?java/util/IteratorAhasNextC?BDnextF?BGshards7()Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;IJ
K
?Gcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursorNkeyLjava/lang/Object;PQ	OR'com/groupbyinc/flux/index/shard/ShardIdTgetIndex#()Lcom/groupbyinc/flux/index/Index;VW
UX
java/util/SetZcontains\?[]buildert(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;_`
aFAILURE5Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;cd	$eindex was deletedg\(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;Ljava/lang/String;)VGi
!jput8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;lm
nbuildpJ
q*()Lcom/groupbyinc/flux/snapshots/Snapshot;!s
tSTARTEDvd	$woverallState?(Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;yz
{
??(Lcom/groupbyinc/flux/snapshots/Snapshot;Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;Ljava/util/List;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)VG~
add??<?size()I??<?toArray(([Ljava/lang/Object;)[Ljava/lang/Object;??<?6[Lcom/groupbyinc/flux/cluster/RestoreInProgress$Entry;?9([Lcom/groupbyinc/flux/cluster/RestoreInProgress$Entry;)VG?
?shardId)Lcom/groupbyinc/flux/index/shard/ShardId;cursor?Lcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;ILcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectObjectCursor;?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;5Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;
shardsBuilder?Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;=Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap$Builder;entry5Lcom/groupbyinc/flux/cluster/RestoreInProgress$Entry;
oldRestore/Lcom/groupbyinc/flux/cluster/RestoreInProgress;deletedIndices2Ljava/util/Set;changesMadeGLjava/util/List;restoreInProgress?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/snapshots/Snapshot;)Lcom/groupbyinc/flux/cluster/RestoreInProgress$Entry;restore?customE(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom;??
,?equals??
??state*Lcom/groupbyinc/flux/cluster/ClusterState;cleanupRestoreState4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEvent?,()Lcom/groupbyinc/flux/cluster/ClusterState;??
??7()Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;??
?	completed??
$?EF	?8(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Z??
?java/lang/AssertionError?0state says completed but restore entries are not?(Ljava/lang/Object;)VG?
??clean up snapshot restore state?+(Lcom/groupbyinc/flux/snapshots/Snapshot;)VG?
'?#com/groupbyinc/flux/common/Priority?URGENT%Lcom/groupbyinc/flux/common/Priority;??	??2com/groupbyinc/flux/cluster/ClusterStateTaskConfig?[(Lcom/groupbyinc/flux/common/Priority;)Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;p????(Ljava/lang/String;Ljava/lang/Object;Lcom/groupbyinc/flux/cluster/ClusterStateTaskConfig;Lcom/groupbyinc/flux/cluster/ClusterStateTaskExecutor;Lcom/groupbyinc/flux/cluster/ClusterStateTaskListener;)V??
X?event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;values@()Lcom/groupbyinc/flux/common/carrotsearch/hppc/ObjectContainer;??
?;CLcom/groupbyinc/flux/common/carrotsearch/hppc/cursors/ObjectCursor;nonCompletedState	hasFailedfailedShards8(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)IIjava/util/HashMap?
?6
java/util/Map?java/lang/String?renameReplacement??
	?
renamePattern?
	
replaceAll8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
??njava/lang/StringBuilder
	6	indices [append-(Ljava/lang/String;)Ljava/lang/StringBuilder;

	] and [#] are renamed into the same index []toString?
	renamedIndexLjava/lang/String;
previousIndexindex/()Lcom/groupbyinc/flux/snapshots/SnapshotState;?
?+com/groupbyinc/flux/snapshots/SnapshotState!
restorable#?
"$,()Lcom/groupbyinc/flux/snapshots/SnapshotId;&
?'unsupported snapshot state [)-(Ljava/lang/Object;)Ljava/lang/StringBuilder;
+
	,=(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)VG.
?/com/groupbyinc/flux/Version1CURRENTLcom/groupbyinc/flux/Version;34	25version()Lcom/groupbyinc/flux/Version;78
?9before (Lcom/groupbyinc/flux/Version;)Z;<
2=5the snapshot was created with Elasticsearch version [?1] which is higher than the version of this node [AfailedA(Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Ljava/lang/String;)Z
shardFailuresE?
?F2com/groupbyinc/flux/snapshots/SnapshotShardFailureH?
IJ
??failure4Lcom/groupbyinc/flux/snapshots/SnapshotShardFailure;checkIndexClosing<(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)V	O?1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;&R
,S-com/groupbyinc/flux/cluster/metadata/MetaDataUW(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;W
VXjava/util/HashSetZ
[62com/groupbyinc/flux/cluster/metadata/IndexMetaData][?"java/lang/IllegalArgumentException`.Cannot close indices that are being restored: b(Ljava/lang/String;)VGd
ae
indexMetaData4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;shard
indicesToFailcurrentStateELjava/util/Set;applyClusterStatelocalNodeMastern?
?o??
qFailed to update restore state s*(Ljava/lang/String;Ljava/lang/Throwable;)Vu
vtisRepositoryInUse?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Z
getRepository{?
?|clusterState	snapshotsLcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessage?[{}] failed to restore snapshot?:?'(Ljava/lang/String;Ljava/lang/Object;)VG?
??getName??
??s
access$400r(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;x0
access$500q(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;
access$600d(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/service/ClusterService;
access$700r(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;
access$800o(Lcom/groupbyinc/flux/snapshots/RestoreService;Lcom/groupbyinc/flux/snapshots/SnapshotInfo;Ljava/lang/String;)ZCD
?x1x2
access$900()Ljava/util/Set;64	?access$100034	?access$1100e(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/common/settings/ClusterSettings;access$1200h(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;java/lang/Class?desiredAssertionStatus??
??index.number_of_shards?index.version.created?
index.uuid?index.creation_date?(com/groupbyinc/flux/common/util/set/Sets?
newHashSet(([Ljava/lang/Object;)Ljava/util/HashSet;??
??java/util/Collections?unmodifiableSet (Ljava/util/Set;)Ljava/util/Set;??
??[?(I)VG?
[?addAll(Ljava/util/Collection;)Z??[?index.number_of_replicas?index.auto_expand_replicas?index.version.upgraded?unremovable	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotationsLocalVariableTypeTable
StackMapTable?(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/cluster/RestoreInProgress;Ljava/util/Set;)Lcom/groupbyinc/flux/cluster/RestoreInProgress;(Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;?(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)Z?(Lcom/groupbyinc/flux/common/collect/ImmutableOpenMap;)I?(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Ljava/util/List;)Ljava/util/Map;r(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/util/Set;)VBootstrapMethods
SourceFileInnerClasses!
34?564?5789:;<=>?@ABCDEFGH??<*+?L*,?N*-?P*?R*?T*?V,*?\*?^*?Y*?b?e?g??R<hi<jk<78<9:<;<<=><?@<AB?*
??
????!?&?,?;??Ilm??
*?P+?s?yN-?:????+??????:?????Y+?s+??????????+??????:?????Y+?s+??÷??????:-??:??Y+?s??:	??+??+?߸?:
-
???:*+?s??*+
??:*?N+???Y*	+,????N*?b+?-?,-????o???v?0?f??n?d ?U!"	?C#%
?2&'??)?*+hi,-.0?40?f??C#$
??(./?^????0?8?J?Z?f?n??????????????????????????(?J{???5??z	o??	12?&
?=?4Y?7N*?:?@:?E???H?::?L?M:?E?Q?H?O:?S?U:	+	?Y?^?*=?
?L?b:	?!Y?fh?k?oW????/?r:-?Y?u?x?|?}????W?-??W??K??Y--??????????*??\	X5??	N????"I?.???+????????4??F
?8%?4N????"I?.??????
?8??V??
?+?.?N?X?f?h?m?w??????????????????????/	?<B?"B?>OU??0????	????A*????M,?3,?:?@N-?E? -?H?:?u+?????????*-*?A??A!"6???abc-d9e<g?i??B"????"?+??M,????N-?r-?:?@:?E?]?H?:?????C????L?????Yŷȿ*?Nʻ'Y?u?ͲӸ?*?g*?g?ۧ????45K???hi?????t???2????5?@?\?i?r?}???????,B?<?#?	yz??U=+???N-?E?7-?H??:???!????*????!??f?=?????f?????* &??U?dUI?S?F? &??UI??*
?? ?1?3?D?F?I?M?Q???B?&?????	????4*???L+?E?"+?H??M,???!????????????4I????4I????-?/?2???
B$???	????7<*???M,?E?#,?H??N-???!??f??????? ??7I?5?????7I?????/?2?5??
?B%??????g???Y??N,?@:?E???H??::+???+??+?+???:-???:?D??Y+?s+???	Y?
?????????????t-??H*rVF&v?hi?,-?#%??)??#$??(?*
??&?*?8?G?V?[????????B?6???T????????,? ?%?4??Y??Y+,?(?һ	Y?
*?,? ?-???0??6,?:?>?@??Y??Y+,?(?һ	Y?
@?,?:?-B??6?-???0??? ?hi?v? ??
?(?;?H?f????;?ICD??1+?G?@N-?E?-?H?I:,?K?L???????*MN1hi1! 1?*,/??
B!?	OP??	?*????M,??N,?:?@:?E???H?:?L?M:?E?e?H?O:?Q?!????E*?T?S?U?Y?Y:?,+?^?!-??[Y?\N-?S?U?Y?_W?????t-??aY?	Y?
c?-?-??f???Hw.ghRSi?2v???j4?k???4???? RSi??j???l?B2Rcw??????? ?#?,?[B?B?VO^??????m???+?p?*+?r?M*?bt,?w?o? 
x+hi???()-+,.?Bo
	yz??C*????M,?5,?:?@N-?E?"-?H?:+?u?}?L???????*-!?C~?Cv8??89:-;<<>>A@??B$?
?S)??Y??	Y?
*?s???*????????),-??
???@*??+???L??,-???
???@*??+???L??,-??????/*?V???i?u???/*?T???i?u???/*?N???i?u???/*?R???i?u???E*+,???? ?i? ??u???????u???????u???/*?^???i?u???/*?b???i?u?5??w????????Y?SY?SY?SY?S???????[Y????`??K*????W*ʹ_W*̹_W*ι_W*??????G/?4?G/?5?&	uw5?G?Q?[?e?o?v??@? ???????????b	
	
			!"	$%@'(*,-	/12




© 2015 - 2025 Weber Informatics LLC | Privacy Policy