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

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

There is a newer version: 59
Show newest version
????3?,com/groupbyinc/flux/snapshots/RestoreService6com/groupbyinc/flux/common/component/AbstractComponent0com/groupbyinc/flux/cluster/ClusterStateListenerRestoreService.javaMcom/groupbyinc/flux/snapshots/RestoreService$UpdateRestoreStateRequestHandler UpdateRestoreStateRequestHandlerQcom/groupbyinc/flux/snapshots/RestoreService$UpdateIndexShardRestoreStatusRequest$UpdateIndexShardRestoreStatusRequest;com/groupbyinc/flux/snapshots/RestoreService$RestoreRequestRestoreRequestFcom/groupbyinc/flux/snapshots/RestoreService$RestoreCompletionResponseRestoreCompletionResponse.com/groupbyinc/flux/snapshots/RestoreService$2.com/groupbyinc/flux/snapshots/RestoreService$1@com/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus-com/groupbyinc/flux/cluster/RestoreInProgressShardRestoreStatusjava/util/Map$Entry
java/util/MapEntry3com/groupbyinc/flux/cluster/RestoreInProgress$Entry"/com/groupbyinc/flux/threadpool/ThreadPool$Names$)com/groupbyinc/flux/threadpool/ThreadPool&Names3com/groupbyinc/flux/cluster/RestoreInProgress$State)State/com/groupbyinc/flux/cluster/ClusterState$Custom,(com/groupbyinc/flux/cluster/ClusterState.CustomEcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder1=com/groupbyinc/flux/common/google/common/collect/ImmutableSet3BuilderUPDATE_RESTORE_ACTION_NAMELjava/lang/String;(internal:cluster/snapshot/update_restore8UNMODIFIABLE_SETTINGS?Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;SLcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;UNREMOVABLE_SETTINGSclusterService,Lcom/groupbyinc/flux/cluster/ClusterService;repositoriesService6Lcom/groupbyinc/flux/repositories/RepositoriesService;transportService0Lcom/groupbyinc/flux/transport/TransportService;allocationServiceBLcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;createIndexServiceALcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;dynamicSettings6Lcom/groupbyinc/flux/cluster/settings/DynamicSettings;metaDataIndexUpgradeServiceBLcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;	listeners+Ljava/util/concurrent/CopyOnWriteArrayList;?Ljava/util/concurrent/CopyOnWriteArrayList;>;updatedSnapshotStateQueue$Ljava/util/concurrent/BlockingQueue;yLjava/util/concurrent/BlockingQueue;?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/cluster/ClusterService;Lcom/groupbyinc/flux/repositories/RepositoriesService;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;Lcom/groupbyinc/flux/cluster/settings/DynamicSettings;Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;)V*Lcom/groupbyinc/flux/common/inject/Inject;=Lcom/groupbyinc/flux/cluster/settings/ClusterDynamicSettings;1(Lcom/groupbyinc/flux/common/settings/Settings;)VRV
W)java/util/concurrent/CopyOnWriteArrayListY()VR[
Z\LM	^@com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections`newBlockingQueue&()Ljava/util/concurrent/BlockingQueue;bc
adOP	f>?	h@A	jBC	lDE	nFG	pHI	rJK	tsamev1(Lcom/groupbyinc/flux/snapshots/RestoreService;)VRx
	y.com/groupbyinc/flux/transport/TransportService{registerRequestHandlero(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V}~
|*com/groupbyinc/flux/cluster/ClusterService?add5(Lcom/groupbyinc/flux/cluster/ClusterStateListener;)V????this.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/Throwable?
repository()Ljava/lang/String;??
?4com/groupbyinc/flux/repositories/RepositoriesService?A(Ljava/lang/String;)Lcom/groupbyinc/flux/repositories/Repository;??
??/com/groupbyinc/flux/cluster/metadata/SnapshotId?name??
?'(Ljava/lang/String;Ljava/lang/String;)VR?
??+com/groupbyinc/flux/repositories/Repository?readSnapshot[(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;)Lcom/groupbyinc/flux/snapshots/Snapshot;????&com/groupbyinc/flux/snapshots/Snapshot?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;??
??readSnapshotMetaData?(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/util/List;)Lcom/groupbyinc/flux/cluster/metadata/MetaData;????version()Lcom/groupbyinc/flux/Version;??
??com/groupbyinc/flux/Version?
V_2_0_0_beta1Lcom/groupbyinc/flux/Version;??	??before (Lcom/groupbyinc/flux/Version;)Z??
??logger-Lcom/groupbyinc/flux/common/logging/ESLogger;??	?-com/groupbyinc/flux/cluster/metadata/MetaData?addDefaultUnitsIfNeeded?(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/cluster/metadata/MetaData;)Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
??)com/groupbyinc/flux/action/ActionListener?java/util/List?validateSnapshotRestorable\(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/snapshots/Snapshot;)V??
?renamedIndices^(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Ljava/util/List;)Ljava/util/Map;??
?cause??
?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R?
?submitStateUpdateTaskI(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterStateUpdateTask;)V????#[{}][{}] failed to restore snapshot?java/lang/Object?+com/groupbyinc/flux/common/logging/ESLogger?warn=(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V????	onFailure(Ljava/lang/Throwable;)V????metaData/Lcom/groupbyinc/flux/cluster/metadata/MetaData;-Lcom/groupbyinc/flux/repositories/Repository;
snapshotId1Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;snapshot(Lcom/groupbyinc/flux/snapshots/Snapshot;filteredIndices$Ljava/util/List;Ljava/util/List;
metaDataIn5Ljava/util/Map;Ljava/util/Map;eLjava/lang/Throwable;request=Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;listenerXLcom/groupbyinc/flux/action/ActionListener;+Lcom/groupbyinc/flux/action/ActionListener;indexShardRestoreCompleted](Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/index/shard/ShardId;)V&[{}] successfully restored shard  [{}]trace((Ljava/lang/String;[Ljava/lang/Object;)V?state,()Lcom/groupbyinc/flux/cluster/ClusterState;?nodes3()Lcom/groupbyinc/flux/cluster/node/DiscoveryNodes;
//com/groupbyinc/flux/cluster/node/DiscoveryNodeslocalNodeId?
 SUCCESS5Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;"#	*$J(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;)VR&
'?(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus;Lcom/groupbyinc/flux/snapshots/RestoreService$1;)VR)
*
masterNode2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;,-
.;com/groupbyinc/flux/transport/EmptyTransportResponseHandler0
INSTANCE_SAME=Lcom/groupbyinc/flux/transport/EmptyTransportResponseHandler;23	14sendRequest?(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequest;Lcom/groupbyinc/flux/transport/TransportResponseHandler;)V67
|8shardId)Lcom/groupbyinc/flux/index/shard/ShardId;SLcom/groupbyinc/flux/snapshots/RestoreService$UpdateIndexShardRestoreStatusRequest;updateRestoreStateOnMasterV(Lcom/groupbyinc/flux/snapshots/RestoreService$UpdateIndexShardRestoreStatusRequest;)V,received updated snapshot restore state [{}]?"java/util/concurrent/BlockingQueueA(Ljava/lang/Object;)Z?CBDupdate snapshot stateF?(Lcom/groupbyinc/flux/snapshots/RestoreService;Lcom/groupbyinc/flux/snapshots/RestoreService$UpdateIndexShardRestoreStatusRequest;)VRH
I	completed(Ljava/util/Map;)Zvalues()Ljava/util/Collection;MN Ojava/util/CollectionQiterator()Ljava/util/Iterator;STRUjava/util/IteratorWhasNext()ZYZX[next()Ljava/lang/Object;]^X_7()Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;a
bKZ
*dstatusBLcom/groupbyinc/flux/cluster/RestoreInProgress$ShardRestoreStatus;shards|Ljava/util/Map;failedShards(Ljava/util/Map;)IFAILUREl#	*mI5com/groupbyinc/flux/common/google/common/collect/Mapsp
newHashMap()Ljava/util/HashMap;rs
qt?Ujava/lang/StringwrenameReplacementy?
z
renamePattern|?
}
replaceAll8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;?
x?put8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;?? ?6com/groupbyinc/flux/snapshots/SnapshotRestoreException?java/lang/StringBuilder?
?\	indices [?append-(Ljava/lang/String;)Ljava/lang/StringBuilder;??
??] and [?#] are renamed into the same index [?]?toString??
??F(Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;Ljava/lang/String;)VR?
??renamedIndex
previousIndexindex/()Lcom/groupbyinc/flux/snapshots/SnapshotState;?
??+com/groupbyinc/flux/snapshots/SnapshotState?
restorable?Z
??unsupported snapshot state [?-(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
??CURRENT??	??5the snapshot was created with Elasticsearch version [?1] which is higher than the version of this node [?processDeletedIndices4(Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;)V/com/groupbyinc/flux/cluster/ClusterChangedEvent?
?restore?customE(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/ClusterState$Custom;??
/?indicesDeleted??
??isEmpty?Z??entries??
?A()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableMap;h?
#?=com/groupbyinc/flux/common/google/common/collect/ImmutableMap?entrySetA()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;??
??I()Lcom/groupbyinc/flux/common/google/common/collect/UnmodifiableIterator;S?
4?getValue?^?1()Lcom/groupbyinc/flux/cluster/metadata/MetaData;??
/?getKey?^?'com/groupbyinc/flux/index/shard/ShardId?getIndex??
??hasIndex(Ljava/lang/String;)Z??
??java/util/ArrayList?
?\?D'[{}] failing running shard restore [{}]?3()Lcom/groupbyinc/flux/cluster/metadata/SnapshotId;??
#?index was deleted?\(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/RestoreInProgress$State;Ljava/lang/String;)VR?
?=>
?shard?Ljava/util/Map$Entry;Ljava/util/Map$Entry;shardsToFail;Ljava/util/List;entry5Lcom/groupbyinc/flux/cluster/RestoreInProgress$Entry;event1Lcom/groupbyinc/flux/cluster/ClusterChangedEvent;/Lcom/groupbyinc/flux/cluster/RestoreInProgress;failRestore"[{}] failed to restore shard  [{}]debug?failed=(Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)Z
shardFailures	?
?
2com/groupbyinc/flux/snapshots/SnapshotShardFailure??

equalsC
xfailure4Lcom/groupbyinc/flux/snapshots/SnapshotShardFailure;addListener.(Lcom/groupbyinc/flux/action/ActionListener;)V
ZDuLcom/groupbyinc/flux/action/ActionListener;removeListenerremoveC
ZclusterChangedlocalNodeMasterZ
???
!Failed to update restore state #tisRepositoryInUse?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;)Z
getRepository(?
?)clusterState*Lcom/groupbyinc/flux/cluster/ClusterState;	snapshots
access$200r(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataIndexUpgradeService;x0
access$300q(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/metadata/MetaDataCreateIndexService;
access$400\(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/ClusterService;
access$500@(Lcom/groupbyinc/flux/snapshots/RestoreService;Ljava/util/Map;)ZKL
7x1
access$600@(Lcom/groupbyinc/flux/snapshots/RestoreService;Ljava/util/Map;)Ijk
<
access$700r(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/routing/allocation/AllocationService;
access$800k(Lcom/groupbyinc/flux/snapshots/RestoreService;Lcom/groupbyinc/flux/snapshots/Snapshot;Ljava/lang/String;)Z
Bx2
access$900=;	Faccess$1000:;	Iaccess$1100f(Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/cluster/settings/DynamicSettings;access$1200](Lcom/groupbyinc/flux/snapshots/RestoreService;)Lcom/groupbyinc/flux/common/logging/ESLogger;access$1300access$1400access$1600T(Lcom/groupbyinc/flux/snapshots/RestoreService;)Ljava/util/concurrent/BlockingQueue;access$1700access$1800access$1900access$2000access$2100access$2300access$2500[(Lcom/groupbyinc/flux/snapshots/RestoreService;)Ljava/util/concurrent/CopyOnWriteArrayList;access$2700access$2800index.number_of_shards^index.version.created`index.legacy.routing.hash.typebindex.legacy.routing.use_typed
index.uuidfindex.creation_datehof?(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet;jk
4lbuilderI()Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;no
4paddAll](Ljava/lang/Iterable;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;rs
2tindex.number_of_replicasv[(Ljava/lang/Object;)Lcom/groupbyinc/flux/common/google/common/collect/ImmutableSet$Builder;?x
2yindex.auto_expand_replicas{index.version.upgraded} index.version.minimum_compatiblebuild??
2?
ConstantValue	SignatureCodeLocalVariableTableLineNumberTableRuntimeVisibleAnnotations"RuntimeVisibleParameterAnnotationsLocalVariableTypeTable
StackMapTable?(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Lcom/groupbyinc/flux/action/ActionListener;)V(Ljava/util/Map;)Z(Ljava/util/Map;)I?(Lcom/groupbyinc/flux/snapshots/RestoreService$RestoreRequest;Ljava/util/List;)Ljava/util/Map;x(Lcom/groupbyinc/flux/action/ActionListener;)V
SourceFileInnerClasses!67?9:;?<=;?<>?@ABCDEFGHIJKLM?NOP?Q'RS?	Z*+?X*?ZY?]?_*?e?g*,?i*-?k*?m*?o*?q*?s*?u9w?	Y*?z??,*????\	Z??Z??Z>?Z@AZBCZDEZFGZHIZJK?6
?????!?'?-?3?9???R?Y??T?U???
?*?k+????N??Y+??+????:-??:??+??+????:-??:???ƶʙ*????:?:*??*+??:	*?i+??Y*	+,????)N*???-??Y+??SY+??S??,-???????z`?????z??'p??9^GP?g0??x?	?%????	?
? 9^x?	?
?B???'?9?G?U?c?g?o?x????????????;?c?????????2??%??
??Y*????Y+SY,S??Y+,?Y*?i???!?%?(?+N*?m*?i???/9-?5?9??*Y??Y??Y:;<<???&?<?X?=>?u5*??@??Y+S?*?g+?EW*?iG?Y*+?J????5??5<?4?KL??0+?P?VM,?\?,?`?N-?c?e??????? fg0??0h?0hi???)?+?.???X???jk??5=+?P?VN-?\?-?`?:?c?n???????*"fg5??5h3jo?5hi???"?-?0?3??
?X!??????j??uN,?v:?\???`?x::+?{?+?~?+?~+?{??:-???x:?K??Y??Y+??+??????Y???????????????????????????m-??H&y?7RM?7"}?7????	????????*
??"?&?4?C?R?W??????? X?6xx?[???????p,?????)??Y+??Y?????,??????????????,???ʙ5??Y+??Y?????,????????????????????? p??p??p????
?0?=?P?o??0>???
+??????M,??+?¹???,?ȹvN-?\??-?`?#::?˶Ѷ?:?\?\?`?:????c?e?:+???????߶?? ???Y??:????W????c?v:?\?P?`??:*?????Y??SYS?*?Y???Y?n???+?????????HcJ???>:;@??=?????????cJ??@????R?????=?@?c?v?????????????????????2	??X?##?X?P???
X?V???Y*????Y+SY,S??Y+,?Y*?i???!?n?(?+N*?m*?i???/9-?5?9??*Y??Y??Y:;<<???&?<?X???1+??vN-?\?-?`?
:,?????????*1??1??1?7???*?,/??
X!??T
*?_+?W??
??

?

?

	???T
*?_+?W??
??

?

?
	?????"+? ?*+?"?M*??$,?????? %"??"???#!"!$?B?	&'??C*????M,?5,?ȹvN-?\?"-?`?#:+??*????????*-??C+,C?78-?./0-1<2>4A6??X$?./?/*?u??0??o12?/*?q??0??o34?/*?i??0??o56?:*+?8??0?9?o:;?:*+?=??0?9?o>??/*?o??0??o@A?E*+,?C?? 0?9?D7?oE???G??oH???J??oKL?/*?s??0??oMN?/*?ΰ?0??oON?/*?ΰ?0??oPN?/*?ΰ?0??oQR?/*?g??0??oSN?/*?ΰ?0??oTN?/*?ΰ?0??oUN?/*?ΰ?0??oVN?/*?ΰ?0??oWN?/*?ΰ?0??oXN?/*?ΰ?0??oYZ?/*?_??0??o[N?/*?ΰ?0??o\H?:*+????0?9<?o][?|D_acegi?x?m?J?q?J?uw?z|?z~?z??z???G??&	s|"}(~.4?:?=?C|??j
	

			 !	#!	%'(	*+@-/0	245	




© 2015 - 2025 Weber Informatics LLC | Privacy Policy