
com.groupbyinc.flux.indices.recovery.RecoveriesCollection.class Maven / Gradle / Ivy
???? 3 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 Ccom/groupbyinc/flux/indices/recovery/RecoveriesCollection$StatusRef StatusRef Dcom/groupbyinc/flux/indices/recovery/RecoveryTarget$RecoveryListener 3com/groupbyinc/flux/indices/recovery/RecoveryTarget RecoveryListener /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names onGoingRecoveries $Ljava/util/concurrent/ConcurrentMap; kLjava/util/concurrent/ConcurrentMap; logger -Lcom/groupbyinc/flux/common/logging/ESLogger;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; $assertionsDisabled Z [(Lcom/groupbyinc/flux/common/logging/ESLogger;Lcom/groupbyinc/flux/threadpool/ThreadPool;)V ()V ! #
$ @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections & newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; ( )
' * , . 0 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/RecoveryTarget$RecoveryListener;Lcom/groupbyinc/flux/common/unit/TimeValue;)J 3com/groupbyinc/flux/indices/recovery/RecoveryStatus 6 ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget$RecoveryListener;)V ! 8
7 9
recoveryId ()J ; <
7 = java/lang/Long ? valueOf (J)Ljava/lang/Long; A B
@ C "java/util/concurrent/ConcurrentMap E putIfAbsent 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; G H F I K java/lang/AssertionError M 3found two RecoveryStatus instances with the same id O (Ljava/lang/Object;)V ! Q
N R ${} started recovery from {}, id [{}] T *com/groupbyinc/flux/index/shard/IndexShard V shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; X Y
W Z +com/groupbyinc/flux/common/logging/ESLogger \ trace ((Ljava/lang/String;[Ljava/lang/Object;)V ^ _ ] ` generic b lastAccessTime d <
7 e ?(Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection;JJLcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$1;)V ! g
h schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; j k
l
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard;
sourceNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; listener FLcom/groupbyinc/flux/indices/recovery/RecoveryTarget$RecoveryListener; activityTimeout +Lcom/groupbyinc/flux/common/unit/TimeValue; status 5Lcom/groupbyinc/flux/indices/recovery/RecoveryStatus; existingStatus getStatus H(J)Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$StatusRef; get &(Ljava/lang/Object;)Ljava/lang/Object; { | F } tryIncRef ()Z ?
7 ? 8(Lcom/groupbyinc/flux/indices/recovery/RecoveryStatus;)V ! ?
? id J
getStatusSafe q(JLcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$StatusRef; y z
? 9com/groupbyinc/flux/index/shard/IndexShardClosedException ? ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V ! ?
? ? 7()Lcom/groupbyinc/flux/indices/recovery/RecoveryStatus; v ?
?
7 Z 'com/groupbyinc/flux/index/shard/ShardId ? equals (Ljava/lang/Object;)Z ? ?
? ?
N $ )Lcom/groupbyinc/flux/index/shard/ShardId; statusRef ELcom/groupbyinc/flux/indices/recovery/RecoveriesCollection$StatusRef; cancelRecovery (JLjava/lang/String;)Z remove ? | F ? 3{} canceled recovery from {}, id [{}] (reason [{}]) ? 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; p ?
7 ? cancel (Ljava/lang/String;)V ? ?
7 ? reason Ljava/lang/String; removed cancelled failRecovery C(JLcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)V >{} failing recovery from {}, id [{}]. Send shard failure: [{}] ? java/lang/Boolean ? (Z)Ljava/lang/Boolean; A ?
? ? fail B(Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)V ? ?
7 ? e >Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException; sendShardFailure markRecoveryAsDone (J)V ,{} marking recovery from {} as done, id [{}] ?
markAsDone ? #
7 ? size ()I ? ? F ? cancelRecoveriesForShard >(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)Z 8com/groupbyinc/flux/common/google/common/base/Predicates ?
alwaysTrue ;()Lcom/groupbyinc/flux/common/google/common/base/Predicate; ? ?
? ? w(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Lcom/groupbyinc/flux/common/google/common/base/Predicate;)Z ? ?
? values ()Ljava/util/Collection; ? ? F ? java/util/Collection ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? ? ? ? next ()Ljava/lang/Object; ? ? ? ? 7com/groupbyinc/flux/common/google/common/base/Predicate ? apply ? ? ? ? decRef ? #
7 ? java/lang/String ? java/lang/Throwable ? ? ?
? shouldCancel pLcom/groupbyinc/flux/common/google/common/base/Predicate; 9Lcom/groupbyinc/flux/common/google/common/base/Predicate;
access$100 j(Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection;)Lcom/groupbyinc/flux/common/logging/ESLogger; x0
access$200 a(Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection;)Ljava/util/concurrent/ConcurrentMap;
access$300 h(Lcom/groupbyinc/flux/indices/recovery/RecoveriesCollection;)Lcom/groupbyinc/flux/threadpool/ThreadPool; java/lang/Class desiredAssertionStatus ?
Signature Code LocalVariableTable LineNumberTable
StackMapTable LocalVariableTypeTable ?(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Lcom/groupbyinc/flux/common/google/common/base/Predicate;)Z
SourceFile InnerClasses ! ! " d *? %*? +? -*+? /*,? 1?
2 3 4 / 5 6 7 4 5 ?? 7Y+,-? ::*? -? >? D? J ? 7:? L? ?
? NYP? S?*? /U? Y+? [SY,SY? >? DS? a *? 1c? Y*? >? f? i? mW? >?
H ? 2 3 ? n o ? p q ? r s ? t u y v w $ a x w " @ A $ B 9 C ^ D m E { D F ? 9 7 7 y z '*? -? D? ~ ? 7N-? -? ?? ? Y-? ???
' 2 3 ' ? ? v w Q R S % U ? % 7 ? ? ? 5*? ?:? ? ?Y-? ??? L? ? ?? ?-? ?? ? NY? ???
* 5 2 3 5 ? ? 5 X ? . ? ? Z [ \ ^ 2 _ ? ? ? ? T*? -? D? ? ? 7:6? :*? /?? Y? ?SY? ?SY? >? DSY-S? a -? ?6?
4 T 2 3 T ? ? T ? ? B ? w ? ? &