com.groupbyinc.flux.indices.recovery.RecoveryTarget.class Maven / Gradle / Ivy
???? 4d 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 Fcom/groupbyinc/flux/index/seqno/GlobalCheckpointTracker$PrimaryContext 7com/groupbyinc/flux/index/seqno/GlobalCheckpointTracker 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 %java/lang/invoke/MethodHandles$Lookup > java/lang/invoke/MethodHandles @ Lookup logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; idGenerator (Ljava/util/concurrent/atomic/AtomicLong; RECOVERY_PREFIX Ljava/lang/String; recovery. I 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 k (Ljava/lang/String;)V i m
n )java/util/concurrent/atomic/AtomicBoolean p ()V i r
q s Z [ u @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections w newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; y z
x { \ ] } java/lang/System nanoTime ()J ? ?
? ? a N ? #java/util/concurrent/CountDownLatch ? (I)V i ?
? ? b c ? d e ?
s _ ` ? E F ? &java/util/concurrent/atomic/AtomicLong ? incrementAndGet ? ?
? ? M N ? V W ? 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; K ?
? ? 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;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ?
? ? C D ? O P ? Q R ? K L ? java/lang/StringBuilder ?
? s append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? com/groupbyinc/flux/common/UUIDs ? randomBase64UUID ()Ljava/lang/String; ? ?
? ? . ? toString ? ?
? ? S H ? )()Lcom/groupbyinc/flux/index/store/Store; T ?
? ? T U ? X Y ? incRef ? r
4 ?
recoveryStats 4()Lcom/groupbyinc/flux/index/recovery/RecoveryStats; ? ?
? ? 0com/groupbyinc/flux/index/recovery/RecoveryStats ? incCurrentAsTarget ? r
? ? this 5Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; retryCopy 7()Lcom/groupbyinc/flux/indices/recovery/RecoveryTarget; i j
? .()Lcom/groupbyinc/flux/index/shard/IndexShard; ensureRefCount ? r
? 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
q +reset of recovery with shard {} and id [{}] java/lang/Long valueOf (J)Ljava/lang/Long;
6com/groupbyinc/flux/common/apache/logging/log4j/Logger debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V decRef r
java/lang/Throwable! "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;%&
$'( r await+ r
?,- run i(Ljava/util/concurrent/CountDownLatch;)Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;/0 1 execute E(Lcom/groupbyinc/flux/common/util/CancellableThreads$Interruptable;)V34
5 enew recovery target cancelled for shard {} while waiting on old recovery target with id [{}] to close7 trace9:
getPrimary ()Z<=
> FINALIZE :Lcom/groupbyinc/flux/indices/recovery/RecoveryState$Stage;@A B DONEDA E g h G java/lang/AssertionErrorI 8recovery should not have completed when it's being resetK (Ljava/lang/Object;)V iM
JN java/lang/IllegalStateExceptionP Hcannot reset recovery as previous attempt made it past finalization stepR
Q n performRecoveryRestartU r
?V e PLcom/groupbyinc/flux/common/util/CancellableThreads$ExecutionCancelledException; newTargetCancellableThreads cancel recovery canceled (reason: [{}])\ '(Ljava/lang/String;Ljava/lang/Object;)V^_[ m
a reason fail B(Lcom/groupbyinc/flux/indices/recovery/RecoveryFailedException;Z)V notifyListenerfe
g failed recovery [i $com/groupbyinc/flux/ExceptionsHelperk
stackTrace )(Ljava/lang/Throwable;)Ljava/lang/String;mn
lo ]q