com.groupbyinc.flux.indices.recovery.PeerRecoveryTargetService.class Maven / Gradle / Ivy
???? 4~ >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 bcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$HandoffPrimaryContextRequestHandler #HandoffPrimaryContextRequestHandler `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 + 8com/groupbyinc/flux/indices/recovery/RecoveryState$Timer - 2com/groupbyinc/flux/indices/recovery/RecoveryState / Timer Ecom/groupbyinc/flux/indices/recovery/RecoveriesCollection$RecoveryRef 2 9com/groupbyinc/flux/indices/recovery/RecoveriesCollection 4 RecoveryRef Ncom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException 7 2com/groupbyinc/flux/common/util/CancellableThreads 9 ExecutionCancelledException 6com/groupbyinc/flux/index/store/Store$MetadataSnapshot < %com/groupbyinc/flux/index/store/Store > MetadataSnapshot /com/groupbyinc/flux/threadpool/ThreadPool$Names A )com/groupbyinc/flux/threadpool/ThreadPool C Names Fcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$Actions F >com/groupbyinc/flux/indices/recovery/PeerRecoverySourceService H @com/groupbyinc/flux/common/util/CancellableThreads$Interruptable J
Interruptable 9com/groupbyinc/flux/cluster/ClusterStateObserver$Listener M 0com/groupbyinc/flux/cluster/ClusterStateObserver O Listener %java/lang/invoke/MethodHandles$Lookup R java/lang/invoke/MethodHandles T 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 c e
f W X h Y Z j [ \ l ] ^ n logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; p q r "java/lang/invoke/LambdaMetafactory t 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; v w
u x y (J)V { waitForClusterState } {
~ accept c(Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService;)Ljava/util/function/LongConsumer; ? ? ? ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/function/LongConsumer;)V c ?
5 ? _ ` ? 'internal:index/shard/recovery/filesInfo ? ()Ljava/lang/Object; ? =com/groupbyinc/flux/indices/recovery/RecoveryFilesInfoRequest ? ()V c ?
? ? ? A()Lcom/groupbyinc/flux/indices/recovery/RecoveryFilesInfoRequest; ? get ()Ljava/util/function/Supplier; ? ? ? generic ? C(Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService;)V c ?
? .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; ? ?
? 5internal:index/shard/recovery/handoff_primary_context ? Icom/groupbyinc/flux/indices/recovery/RecoveryHandoffPrimaryContextRequest ?
? ? ? M()Lcom/groupbyinc/flux/indices/recovery/RecoveryHandoffPrimaryContextRequest; ? ?
? 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 ? ?
5 ? shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard;
indexSettings
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 ?
5 (()Ljava/util/concurrent/ExecutorService; ?
D D(Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService;J)V c
$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*
+ reason 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 [{}])2 java/lang/Long4 valueOf (J)Ljava/lang/Long;67
58 K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V&:%; Ljava/lang/String;
resetRecovery c(JLcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;>?
5@ 3com/groupbyinc/flux/indices/recovery/RecoveryTargetB ()JD
CE schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture;GH
DI newTarget 5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;
doRecovery java/lang/ThrowableN java/lang/ExceptionP getRecovery J(J)Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$RecoveryRef;RS
5T Gnot running recovery with id [{}] - can not find it (probably finished)V '(Ljava/lang/String;Ljava/lang/Object;)V&X%Y close[ ?
3\
addSuppressed (Ljava/lang/Throwable;)V^_
O` target 7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;bc
3d cancellableThreads 6()Lcom/groupbyinc/flux/common/util/CancellableThreads;fg
Ch state 6()Lcom/groupbyinc/flux/indices/recovery/RecoveryState;jk
Cl getTimer <()Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Timer;no
0p a b r 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;t
Cu java/lang/AssertionErrorw +can not do a recovery without a source nodey (Ljava/lang/Object;)V c{
x| getStartRecoveryRequest r(Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;)Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;~
? ${} preparing shard for peer recovery? +()Lcom/groupbyinc/flux/index/shard/ShardId; ??
C? .()Lcom/groupbyinc/flux/index/shard/IndexShard; ??
C? *com/groupbyinc/flux/index/shard/IndexShard? prepareForIndexRecovery? ?
?? Junexpected error while preparing shard for peer recovery, failing recovery? *(Ljava/lang/String;Ljava/lang/Throwable;)V&?%?