com.groupbyinc.flux.indices.recovery.RecoveriesCollection.class Maven / Gradle / Ivy
???? 4A 9com/groupbyinc/flux/indices/recovery/RecoveriesCollection java/lang/Object RecoveriesCollection.java ;com/groupbyinc/flux/indices/recovery/RecoveriesCollection$1 Icom/groupbyinc/flux/indices/recovery/RecoveriesCollection$RecoveryMonitor RecoveryMonitor Ecom/groupbyinc/flux/indices/recovery/RecoveriesCollection$RecoveryRef RecoveryRef Ocom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener >com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService RecoveryListener /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names onGoingRecoveries $Ljava/util/concurrent/ConcurrentMap; kLjava/util/concurrent/ConcurrentMap; logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; !ensureClusterStateVersionCallback !Ljava/util/function/LongConsumer; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/util/function/LongConsumer;)V ()V # %
& @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections ( newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; * +
) , . 0 2 4 this ;Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection;
startRecovery ?(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 3com/groupbyinc/flux/indices/recovery/RecoveryTarget : ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;Ljava/util/function/LongConsumer;)V # <
; = startRecoveryInternal c(Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget;Lcom/groupbyinc/flux/common/unit/TimeValue;)V ? @
A
recoveryId ()J C D
; E
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard;
sourceNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; listener QLcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener; activityTimeout +Lcom/groupbyinc/flux/common/unit/TimeValue; recoveryTarget 5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; java/lang/Long Q valueOf (J)Ljava/lang/Long; S T
R U "java/util/concurrent/ConcurrentMap W putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; Y Z X [ ! " ] java/lang/AssertionError _ 3found two RecoveryStatus instances with the same id a (Ljava/lang/Object;)V # c
` d ${} started recovery from {}, id [{}] f shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; h i
; j 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; I l
; m 6com/groupbyinc/flux/common/apache/logging/log4j/Logger o trace K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V q r p s generic u lastAccessTime w D
; x ?(Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection;JJLcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$1;)V # z
{ schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; } ~
existingTarget
resetRecovery c(JLcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; java/lang/Exception ? remove &(Ljava/lang/Object;)Ljava/lang/Object; ? ? X ? retryCopy 7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; ? ?
; ? java/lang/Throwable ? )com/groupbyinc/flux/common/unit/TimeValue ? cancellableThreads 6()Lcom/groupbyinc/flux/common/util/CancellableThreads; ? ?
; ? 7(Lcom/groupbyinc/flux/common/util/CancellableThreads;)Z ? ?
; ? 8{} restarted recovery from {}, id [{}], previous id [{}] ? ](Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V q ? p ? f{} recovery could not be reset as it is already cancelled, recovery from {}, id [{}], previous id [{}] ? recovery cancelled during reset ? cancelRecovery (JLjava/lang/String;)Z ? ?
?