com.groupbyinc.flux.indices.recovery.RecoveryTarget.class Maven / Gradle / Ivy
???? 4? 3com/groupbyinc/flux/indices/recovery/RecoveryTarget =com/groupbyinc/flux/common/util/concurrent/AbstractRefCounted :com/groupbyinc/flux/indices/recovery/RecoveryTargetHandler RecoveryTarget.java Ocom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener >com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService
RecoveryListener 8com/groupbyinc/flux/indices/recovery/RecoveryState$Stage
2com/groupbyinc/flux/indices/recovery/RecoveryState Stage Ncom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException 2com/groupbyinc/flux/common/util/CancellableThreads ExecutionCancelledException java/util/Map$Entry
java/util/Map Entry Acom/groupbyinc/flux/index/seqno/ReplicationTracker$PrimaryContext 2com/groupbyinc/flux/index/seqno/ReplicationTracker PrimaryContext .com/groupbyinc/flux/index/engine/Engine$Result ! 'com/groupbyinc/flux/index/engine/Engine # Result 5com/groupbyinc/flux/index/translog/Translog$Operation & +com/groupbyinc/flux/index/translog/Translog ( Operation ;com/groupbyinc/flux/indices/recovery/RecoveryState$Translog + Translog 8com/groupbyinc/flux/indices/recovery/RecoveryState$Index . Index 6com/groupbyinc/flux/index/store/Store$MetadataSnapshot 1 %com/groupbyinc/flux/index/store/Store 3 MetadataSnapshot @com/groupbyinc/flux/common/util/CancellableThreads$Interruptable 6
Interruptable 1com/groupbyinc/flux/index/engine/Engine$Operation 9 8com/groupbyinc/flux/index/engine/Engine$Operation$Origin ; Origin 3com/groupbyinc/flux/index/engine/Engine$Result$Type > Type %java/lang/invoke/MethodHandles$Lookup A java/lang/invoke/MethodHandles C Lookup logger !Lorg/apache/logging/log4j/Logger; idGenerator (Ljava/util/concurrent/atomic/AtomicLong; RECOVERY_PREFIX Ljava/lang/String; recovery. L shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
recoveryId J
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard;
sourceNode 0Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; tempFilePrefix store 'Lcom/groupbyinc/flux/index/store/Store; listener QLcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener; !ensureClusterStateVersionCallback !Ljava/util/function/LongConsumer; finished +Ljava/util/concurrent/atomic/AtomicBoolean; openIndexOutputs $Ljava/util/concurrent/ConcurrentMap; tLjava/util/concurrent/ConcurrentMap; cancellableThreads 4Lcom/groupbyinc/flux/common/util/CancellableThreads; lastAccessTime closedLatch %Ljava/util/concurrent/CountDownLatch;
tempFileNames Ljava/util/Map; 5Ljava/util/Map; $assertionsDisabled Z ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener;Ljava/util/function/LongConsumer;)V recovery_status n (Ljava/lang/String;)V l p
q )java/util/concurrent/atomic/AtomicBoolean s ()V l u
t v ] ^ x @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections z newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; | }
{ ~ _ ` ? java/lang/System ? nanoTime ()J ? ?
? ? d Q ? #java/util/concurrent/CountDownLatch ? (I)V l ?
? ? e f ? g h ?
v b c ? H I ? &java/util/concurrent/atomic/AtomicLong ? incrementAndGet ? ?
? ? P Q ? Y Z ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? *com/groupbyinc/flux/index/shard/IndexShard ?
indexSettings +()Lcom/groupbyinc/flux/index/IndexSettings; ? ?
? ? 'com/groupbyinc/flux/index/IndexSettings ? getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ? +()Lcom/groupbyinc/flux/index/shard/ShardId; N ?
? ? java/lang/String ? *com/groupbyinc/flux/common/logging/Loggers ? getLogger ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lorg/apache/logging/log4j/Logger; ? ?
? ? F G ? R S ? T U ? N O ? java/lang/StringBuilder ?
? v append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? com/groupbyinc/flux/common/UUIDs ? randomBase64UUID ()Ljava/lang/String; ? ?
? ? . ? toString ? ?
? ? V K ? )()Lcom/groupbyinc/flux/index/store/Store; W ?
? ? W X ? [ \ ? incRef ? u
4 ?
recoveryStats 4()Lcom/groupbyinc/flux/index/recovery/RecoveryStats; ? ?
? ? 0com/groupbyinc/flux/index/recovery/RecoveryStats ? incCurrentAsTarget ? u
? ? this 5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; retryCopy 7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; l m
? .()Lcom/groupbyinc/flux/index/shard/IndexShard; ensureRefCount ? u
? 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; state 6()Lcom/groupbyinc/flux/indices/recovery/RecoveryState;
recoveryState ? ?
? ? 6()Lcom/groupbyinc/flux/common/util/CancellableThreads; setLastAccessTime stage <()Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Stage; ? ?
getStage
renameAllTempFiles java/io/IOException renameTempFilesSafe (Ljava/util/Map;)V
4
resetRecovery 7(Lcom/groupbyinc/flux/common/util/CancellableThreads;)Z
compareAndSet (ZZ)Z
t +reset of recovery with shard {} and id [{}] java/lang/Long valueOf (J)Ljava/lang/Long;
org/apache/logging/log4j/Logger debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V decRef! u
" java/lang/Throwable$ java/util/Objects& requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object;()
'* "java/lang/invoke/LambdaMetafactory, 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;./
-01 u await4 u
?56 run i(Ljava/util/concurrent/CountDownLatch;)Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;89 : execute E(Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;)V<=
> enew recovery target cancelled for shard {} while waiting on old recovery target with id [{}] to close@ traceBC
getPrimary ()ZEF
G FINALIZE :Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Stage;IJ K DONEMJ N j k P java/lang/AssertionErrorR 8recovery should not have completed when it's being resetT (Ljava/lang/Object;)V lV
SW java/lang/IllegalStateExceptionY Hcannot reset recovery as previous attempt made it past finalization step[
Z q performRecoveryRestart^ u
?_ e PLcom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException; newTargetCancellableThreads cancel recovery canceled (reason: [{}])e '(Ljava/lang/String;Ljava/lang/Object;)Vghd p
j reason fail B(Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)V notifyListeneron
p failed recovery [r $com/groupbyinc/flux/ExceptionsHelpert
stackTrace )(Ljava/lang/Throwable;)Ljava/lang/String;vw
ux ]z