
com.groupbyinc.flux.index.shard.PrimaryReplicaSyncer.class Maven / Gradle / Ivy
???? 4 ? 4com/groupbyinc/flux/index/shard/PrimaryReplicaSyncer 6com/groupbyinc/flux/common/component/AbstractComponent PrimaryReplicaSyncer.java ?com/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$ResyncTask
ResyncTask Bcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$ResyncRequest
ResyncRequest Ccom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$SnapshotSender SnapshotSender ?com/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$SyncAction
SyncAction 6com/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$3 6com/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$2 6com/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$1 4com/groupbyinc/flux/index/translog/Translog$Snapshot +com/groupbyinc/flux/index/translog/Translog Snapshot taskManager 'Lcom/groupbyinc/flux/tasks/TaskManager;
syncAction ALcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$SyncAction; DEFAULT_CHUNK_SIZE /Lcom/groupbyinc/flux/common/unit/ByteSizeValue; chunkSize ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/resync/TransportResyncReplicationAction;)V *Lcom/groupbyinc/flux/common/inject/Inject; .com/groupbyinc/flux/transport/TransportService ' getTaskManager )()Lcom/groupbyinc/flux/tasks/TaskManager; ) *
( + ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/tasks/TaskManager;Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$SyncAction;)V $ -
. this 6Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer; settings .Lcom/groupbyinc/flux/common/settings/Settings; transportService 0Lcom/groupbyinc/flux/transport/TransportService; DLcom/groupbyinc/flux/action/resync/TransportResyncReplicationAction; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V $ 7
8 ! " : # " < > @ setChunkSize 2(Lcom/groupbyinc/flux/common/unit/ByteSizeValue;)V -com/groupbyinc/flux/common/unit/ByteSizeValue D
bytesAsInt ()I F G
E H "java/lang/IllegalArgumentException J chunkSize must be > 0 L (Ljava/lang/String;)V $ N
K O resync Z(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/ActionListener;)V java/lang/Exception S java/io/IOException U *com/groupbyinc/flux/index/shard/IndexShard W getGlobalCheckpoint ()J Y Z
X [
seqNoStats .()Lcom/groupbyinc/flux/index/seqno/SeqNoStats; ] ^
X _ *com/groupbyinc/flux/index/seqno/SeqNoStats a getMaxSeqNo c Z
b d shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; f g
X h newTranslogSnapshotFromMinSeqNo 9(J)Lcom/groupbyinc/flux/index/translog/Translog$Snapshot; j k
X l ?(Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer;Lcom/groupbyinc/flux/index/translog/Translog$Snapshot;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/index/shard/ShardId;)V $ n
o ?(Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer;Lcom/groupbyinc/flux/index/translog/Translog$Snapshot;Lcom/groupbyinc/flux/action/ActionListener;)V $ q
r routingEntry 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; t u
X v 0com/groupbyinc/flux/cluster/routing/ShardRouting x allocationId 4()Lcom/groupbyinc/flux/cluster/routing/AllocationId; z {
y | 0com/groupbyinc/flux/cluster/routing/AllocationId ~ getId ()Ljava/lang/String; ? ?
? getPendingPrimaryTerm ? Z
X ? ?(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLcom/groupbyinc/flux/index/translog/Translog$Snapshot;JJLcom/groupbyinc/flux/action/ActionListener;)V Q ?
? )com/groupbyinc/flux/action/ActionListener ? java/io/Closeable ? ,com/groupbyinc/flux/core/internal/io/IOUtils ? close ([Ljava/io/Closeable;)V ? ?
? ? onFailure (Ljava/lang/Exception;)V ? ? ? ?
addSuppressed (Ljava/lang/Throwable;)V ? ?
T ? java/lang/Throwable ?
startingSeqNo J maxSeqNo )Lcom/groupbyinc/flux/index/shard/ShardId; originalSnapshot 6Lcom/groupbyinc/flux/index/translog/Translog$Snapshot; wrappedSnapshot resyncListener nLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; inner Ljava/io/IOException; e Ljava/lang/Exception;
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard; listener snapshot >(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;)V $ ?
? transport ? Q %com/groupbyinc/flux/tasks/TaskManager ? register r(Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskAwareRequest;)Lcom/groupbyinc/flux/tasks/Task; ? ?
? ? ?(Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer;Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$ResyncTask;Lcom/groupbyinc/flux/action/ActionListener;)V $ ?
? logger !Lorg/apache/logging/log4j/Logger; ? ? ?F(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$SyncAction;Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$ResyncTask;Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLcom/groupbyinc/flux/index/translog/Translog$Snapshot;IJJLcom/groupbyinc/flux/action/ActionListener;)V $ ?
? run ()V ? ?
? 'com/groupbyinc/flux/index/shard/ShardId ? java/lang/String ? primaryAllocationId Ljava/lang/String; primaryTerm request DLcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$ResyncRequest;
resyncTask ALcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer$ResyncTask; wrappedListener =Lcom/groupbyinc/flux/action/ActionListener;
access$000 _(Lcom/groupbyinc/flux/index/shard/PrimaryReplicaSyncer;)Lcom/groupbyinc/flux/tasks/TaskManager; x0 ,com/groupbyinc/flux/common/unit/ByteSizeUnit ? KB .Lcom/groupbyinc/flux/common/unit/ByteSizeUnit; ? ? ? ? 2(JLcom/groupbyinc/flux/common/unit/ByteSizeUnit;)V $ ?
E ? Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations
StackMapTable LocalVariableTypeTable Signature ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/ActionListener;)V ?(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;JLcom/groupbyinc/flux/index/translog/Translog$Snapshot;JJLcom/groupbyinc/flux/action/ActionListener;)V
SourceFile InnerClasses ! ! " B # " $ % ? W *+,? ,-? /? ? * 0 1 2 3 4 5 6 ?
B
C ? &