com.groupbyinc.flux.indices.recovery.PeerRecoveryTargetService.class Maven / Gradle / Ivy
???? 4M >com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService 6com/groupbyinc/flux/common/component/AbstractComponent 2com/groupbyinc/flux/index/shard/IndexEventListener PeerRecoveryTargetService.java Mcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryRunner RecoveryRunner _com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$FileChunkTransportRequestHandler FileChunkTransportRequestHandler Wcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$CleanFilesRequestHandler CleanFilesRequestHandler Vcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$FilesInfoRequestHandler FilesInfoRequestHandler _com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$TranslogOperationsRequestHandler TranslogOperationsRequestHandler `com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$WaitForClusterStateRequestHandler !WaitForClusterStateRequestHandler ]com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$FinalizeRecoveryRequestHandler FinalizeRecoveryRequestHandler icom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$PrepareForTranslogOperationsRequestHandler *PrepareForTranslogOperationsRequestHandler Ocom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener RecoveryListener Fcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$Actions # Actions @com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$1 & @com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$2 ( 6com/groupbyinc/flux/index/store/Store$MetadataSnapshot * %com/groupbyinc/flux/index/store/Store , MetadataSnapshot 8com/groupbyinc/flux/indices/recovery/RecoveryState$Timer / 2com/groupbyinc/flux/indices/recovery/RecoveryState 1 Timer Ecom/groupbyinc/flux/indices/recovery/RecoveriesCollection$RecoveryRef 4 9com/groupbyinc/flux/indices/recovery/RecoveriesCollection 6 RecoveryRef Ncom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException 9 2com/groupbyinc/flux/common/util/CancellableThreads ; ExecutionCancelledException /com/groupbyinc/flux/threadpool/ThreadPool$Names > )com/groupbyinc/flux/threadpool/ThreadPool @ Names Fcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$Actions C >com/groupbyinc/flux/indices/recovery/PeerRecoverySourceService E @com/groupbyinc/flux/common/util/CancellableThreads$Interruptable G
Interruptable 9com/groupbyinc/flux/cluster/ClusterStateObserver$Listener J 0com/groupbyinc/flux/cluster/ClusterStateObserver L Listener %java/lang/invoke/MethodHandles$Lookup O java/lang/invoke/MethodHandles Q Lookup
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; transportService 0Lcom/groupbyinc/flux/transport/TransportService; recoverySettings 7Lcom/groupbyinc/flux/indices/recovery/RecoverySettings; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; onGoingRecoveries ;Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/indices/recovery/RecoverySettings;Lcom/groupbyinc/flux/cluster/service/ClusterService;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ` b
c T U e V W g X Y i Z [ k logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; m n o "java/lang/invoke/LambdaMetafactory q 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; s t
r u v (Ljava/lang/Object;)V x waitForClusterState (J)V z {
| } (Ljava/lang/Long;)V handle l(Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService;)Lcom/groupbyinc/flux/common/util/Callback; ? ? ? ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/util/Callback;)V ` ?
7 ? \ ] ? 'internal:index/shard/recovery/filesInfo ? ()Ljava/lang/Object; ? =com/groupbyinc/flux/indices/recovery/RecoveryFilesInfoRequest ? ()V ` ?
? ? ? A()Lcom/groupbyinc/flux/indices/recovery/RecoveryFilesInfoRequest; ? get ()Ljava/util/function/Supplier; ? ? ? generic ? C(Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService;)V ` ?
? .com/groupbyinc/flux/transport/TransportService ? registerRequestHandler {(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V ? ?
? ? (internal:index/shard/recovery/file_chunk ? =com/groupbyinc/flux/indices/recovery/RecoveryFileChunkRequest ?
? ? ? A()Lcom/groupbyinc/flux/indices/recovery/RecoveryFileChunkRequest; ? ?
? )internal:index/shard/recovery/clean_files ? >com/groupbyinc/flux/indices/recovery/RecoveryCleanFilesRequest ?
? ? ? B()Lcom/groupbyinc/flux/indices/recovery/RecoveryCleanFilesRequest; ? ?
? .internal:index/shard/recovery/prepare_translog ? Pcom/groupbyinc/flux/indices/recovery/RecoveryPrepareForTranslogOperationsRequest ?
? ? ? T()Lcom/groupbyinc/flux/indices/recovery/RecoveryPrepareForTranslogOperationsRequest; ? ?
? *internal:index/shard/recovery/translog_ops ? Fcom/groupbyinc/flux/indices/recovery/RecoveryTranslogOperationsRequest ?
? ? ? J()Lcom/groupbyinc/flux/indices/recovery/RecoveryTranslogOperationsRequest; ? ?
? &internal:index/shard/recovery/finalize ? Dcom/groupbyinc/flux/indices/recovery/RecoveryFinalizeRecoveryRequest ?
? ? ? H()Lcom/groupbyinc/flux/indices/recovery/RecoveryFinalizeRecoveryRequest; ? ?
? /internal:index/shard/recovery/wait_clusterstate ? Gcom/groupbyinc/flux/indices/recovery/RecoveryWaitForClusterStateRequest ?
? ? ? K()Lcom/groupbyinc/flux/indices/recovery/RecoveryWaitForClusterStateRequest; ? ?
? this @Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService; settings .Lcom/groupbyinc/flux/common/settings/Settings; beforeIndexShardClosed ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/common/settings/Settings;)V %Lcom/groupbyinc/flux/common/Nullable; shard closed ? cancelRecoveriesForShard >(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)Z ? ?
7 ? shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard;
indexSettings reason Ljava/lang/String;
startRecovery ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;)V 5com/groupbyinc/flux/indices/recovery/RecoverySettings ? activityTimeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;Lcom/groupbyinc/flux/common/unit/TimeValue;)J ? ?
7 ? (()Ljava/util/concurrent/ExecutorService; ?
A D(Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService;J)V `
$java/util/concurrent/ExecutorService execute (Ljava/lang/Runnable;)V
sourceNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; listener QLcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;
recoveryId J
retryRecovery o(JLjava/lang/Throwable;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;)V lambda$retryRecovery$0 @(JLcom/groupbyinc/flux/common/unit/TimeValue;)Ljava/lang/Object;
m(JLcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger trace W(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V Z(JLcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;)V"
# Ljava/lang/Throwable;
retryAfter +Lcom/groupbyinc/flux/common/unit/TimeValue; l(JLjava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;)V 6will retry recovery with id [{}] in [{}] (reason [{}])) java/lang/Long+ valueOf (J)Ljava/lang/Long;-.
,/ K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V12
resetRecovery c(JLcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;45
76 3com/groupbyinc/flux/indices/recovery/RecoveryTarget8 ()J:
9; schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;=>
A? newTarget 5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;
doRecovery java/lang/ThrowableD Ecom/groupbyinc/flux/common/apache/lucene/index/IndexNotFoundExceptionF java/io/IOExceptionH java/lang/ExceptionJ getRecovery J(J)Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$RecoveryRef;LM
7N Enot running recovery with id [{}] - can't find it (probably finished)P '(Ljava/lang/String;Ljava/lang/Object;)VRS closeU ?
5V
addSuppressed (Ljava/lang/Throwable;)VXY
EZ target 7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;\]
5^ ^ _ ` 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;b
9c java/lang/AssertionErrore )can't do a recovery without a source nodeg ` x
fi collecting local files for {}k .()Lcom/groupbyinc/flux/index/shard/IndexShard; ?m
9n *com/groupbyinc/flux/index/shard/IndexShardp +()Lcom/groupbyinc/flux/index/IndexSettings; ?r
qs 'com/groupbyinc/flux/index/IndexSettingsu isOnSharedFilesystem ()Zwx
vy EMPTY 8Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;{| +} snapshotStoreMetadata :()Lcom/groupbyinc/flux/index/store/Store$MetadataSnapshot;?
q? {} local file count: [{}]? size ()I??
+? java/lang/Integer? (I)Ljava/lang/Integer;-?
?? 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V?? ({} shard folder empty, recover all files? =error while listing local files, recover as if there are none? warn *(Ljava/lang/String;Ljava/lang/Throwable;)V???