com.groupbyinc.flux.indices.recovery.PeerRecoverySourceService.class Maven / Gradle / Ivy
???? 4 >com/groupbyinc/flux/indices/recovery/PeerRecoverySourceService 6com/groupbyinc/flux/common/component/AbstractComponent 2com/groupbyinc/flux/index/shard/IndexEventListener PeerRecoverySourceService.java @com/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$1 Pcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$OngoingRecoveries
OngoingRecoveries ccom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$StartRecoveryTransportRequestHandler
$StartRecoveryTransportRequestHandler Fcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$Actions Actions /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles Lookup transportService 0Lcom/groupbyinc/flux/transport/TransportService; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; recoverySettings 7Lcom/groupbyinc/flux/indices/recovery/RecoverySettings; ongoingRecoveries RLcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService$OngoingRecoveries; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/indices/recovery/RecoverySettings;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V % (
) C(Lcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService;)V % +
, # $ . 0 2 ! " 4 ,internal:index/shard/recovery/start_recovery 6 "java/lang/invoke/LambdaMetafactory 8 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; : ;
9 < = ()Ljava/lang/Object; ? 9com/groupbyinc/flux/indices/recovery/StartRecoveryRequest A ()V % C
B D E =()Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest; G get ()Ljava/util/function/Supplier; I J K generic M
, .com/groupbyinc/flux/transport/TransportService P registerRequestHandler {(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V R S
Q T this @Lcom/groupbyinc/flux/indices/recovery/PeerRecoverySourceService; settings .Lcom/groupbyinc/flux/common/settings/Settings; beforeIndexShardClosed ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/common/settings/Settings;)V %Lcom/groupbyinc/flux/common/Nullable; shard is closed ] cancel A(Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/lang/String;)V _ `
a shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard;
indexSettings recover t(Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;)Lcom/groupbyinc/flux/indices/recovery/RecoveryResponse; java/io/IOException j +()Lcom/groupbyinc/flux/index/shard/ShardId; c l
B m 'com/groupbyinc/flux/index/shard/ShardId o getIndex #()Lcom/groupbyinc/flux/index/Index; q r
p s *com/groupbyinc/flux/indices/IndicesService u indexServiceSafe K(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/index/IndexService; w x
v y id ()I { |
p } &com/groupbyinc/flux/index/IndexService getShard /(I)Lcom/groupbyinc/flux/index/shard/IndexShard; ? ?
? ? *com/groupbyinc/flux/index/shard/IndexShard ? routingEntry 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; ? ?
? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? primary ()Z ? ?
? ? active ? ?
? ? ;com/groupbyinc/flux/indices/recovery/DelayRecoveryException ? java/lang/StringBuilder ?
? D source shard [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] is not an active primary ? toString ()Ljava/lang/String; ? ?
? ? (Ljava/lang/String;)V % ?
? ? isPrimaryRelocation ? ?
B ?
relocating ? ?
? ? relocatingNodeId ? ?
? ?
targetNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
B ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? getId ? ?
? ? java/lang/String ? equals (Ljava/lang/Object;)Z ? ?
? ? logger !Lorg/apache/logging/log4j/Logger; ? ? ? Mdelaying recovery of {} as source shard is not marked yet as relocating to {} ? org/apache/logging/log4j/Logger ? debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? 1source shard is not marked yet as relocating to [ ? ] ? addNewRecovery ?(Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;)Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler; ? ?
? [{}][{}] starting recovery to {} ? com/groupbyinc/flux/index/Index ? getName ? ?
? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? trace K(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? :com/groupbyinc/flux/indices/recovery/RecoverySourceHandler ? recoverToTarget 9()Lcom/groupbyinc/flux/indices/recovery/RecoveryResponse; ? ?
? ? remove k(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)V ? ?
? java/lang/Throwable ? request ;Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest; indexService (Lcom/groupbyinc/flux/index/IndexService; shard 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; handler