
com.groupbyinc.flux.indices.recovery.RecoverySource.class Maven / Gradle / Ivy
???? 3, 3com/groupbyinc/flux/indices/recovery/RecoverySource 6com/groupbyinc/flux/common/component/AbstractComponent RecoverySource.java Dcom/groupbyinc/flux/indices/recovery/RecoverySource$OngoingRecoveres OngoingRecoveres Xcom/groupbyinc/flux/indices/recovery/RecoverySource$StartRecoveryTransportRequestHandler $StartRecoveryTransportRequestHandler ;com/groupbyinc/flux/indices/recovery/RecoverySource$Actions Actions 5com/groupbyinc/flux/indices/recovery/RecoverySource$1 /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names 5com/groupbyinc/flux/indices/IndicesLifecycle$Listener ,com/groupbyinc/flux/indices/IndicesLifecycle Listener transportService 0Lcom/groupbyinc/flux/transport/TransportService; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; recoverySettings 7Lcom/groupbyinc/flux/indices/recovery/RecoverySettings; clusterService ,Lcom/groupbyinc/flux/cluster/ClusterService; ongoingRecoveries FLcom/groupbyinc/flux/indices/recovery/RecoverySource$OngoingRecoveres; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/indices/recovery/RecoverySettings;Lcom/groupbyinc/flux/cluster/ClusterService;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V % (
) :(Lcom/groupbyinc/flux/indices/recovery/RecoverySource$1;)V % +
, # $ . 0 2 ! " 4 *com/groupbyinc/flux/indices/IndicesService 6 indicesLifecycle 0()Lcom/groupbyinc/flux/indices/IndicesLifecycle; 8 9
7 : 8(Lcom/groupbyinc/flux/indices/recovery/RecoverySource;)V % <
= addListener :(Lcom/groupbyinc/flux/indices/IndicesLifecycle$Listener;)V ? @ A C ,internal:index/shard/recovery/start_recovery E 9com/groupbyinc/flux/indices/recovery/StartRecoveryRequest G generic I
= .com/groupbyinc/flux/transport/TransportService L registerRequestHandler o(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V N O
M P this 5Lcom/groupbyinc/flux/indices/recovery/RecoverySource; settings .Lcom/groupbyinc/flux/common/settings/Settings; recover t(Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;)Lcom/groupbyinc/flux/indices/recovery/RecoveryResponse; shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; X Y
H Z 'com/groupbyinc/flux/index/shard/ShardId \ index #()Lcom/groupbyinc/flux/index/Index; ^ _
] ` com/groupbyinc/flux/index/Index b name ()Ljava/lang/String; d e
c f indexServiceSafe <(Ljava/lang/String;)Lcom/groupbyinc/flux/index/IndexService; h i
7 j id ()I l m
] n &com/groupbyinc/flux/index/IndexService p shardSafe /(I)Lcom/groupbyinc/flux/index/shard/IndexShard; r s
q t *com/groupbyinc/flux/cluster/ClusterService v state ,()Lcom/groupbyinc/flux/cluster/ClusterState; x y w z (com/groupbyinc/flux/cluster/ClusterState | getRoutingNodes 4()Lcom/groupbyinc/flux/cluster/routing/RoutingNodes; ~
} ?
targetNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
H ? .com/groupbyinc/flux/cluster/node/DiscoveryNode ? l e
? ? 0com/groupbyinc/flux/cluster/routing/RoutingNodes ? node E(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/RoutingNode; ? ?
? ? logger -Lcom/groupbyinc/flux/common/logging/ESLogger; ? ? ? 4delaying recovery of {} as source node {} is unknown ? java/lang/Object ? +com/groupbyinc/flux/common/logging/ESLogger ? debug ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? ;com/groupbyinc/flux/indices/recovery/DelayRecoveryException ? java/lang/StringBuilder ? ()V % ?
? ? $source node does not have the node [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ? ?
? ? ] in its state yet.. ? toString ? e
? ? (Ljava/lang/String;)V % ?
? ? *com/groupbyinc/flux/index/shard/IndexShard ? /com/groupbyinc/flux/cluster/routing/RoutingNode ? iterator ()Ljava/util/Iterator; ? ?
? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? java/util/Iterator ? hasNext ()Z ? ? ? ? next ()Ljava/lang/Object; ? ? ? ?
? Z equals (Ljava/lang/Object;)Z ? ?
] ? Idelaying recovery of {} as it is not listed as assigned to target node {} ? Psource node does not have the shard listed in its state as allocated on the node ? initializing ? ?
? ? mdelaying recovery of {} as it is not listed as initializing on the target node {}. known shards state is [{}] ? 9()Lcom/groupbyinc/flux/cluster/routing/ShardRoutingState; x ?
? ? 5source node has the state of the target shard to be [ ? !], expecting to be [initializing] ? 6[{}][{}] starting recovery to {}, mark_as_relocated {} ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? markAsRelocated ? ?
H ? java/lang/Boolean ? (Z)Ljava/lang/Boolean; ? ?
? ? trace ? ? ? ?
indexSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; ? ?
? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? isOnSharedFilesystem 1(Lcom/groupbyinc/flux/common/settings/Settings;)Z ? ?
? ? Bcom/groupbyinc/flux/indices/recovery/SharedFSRecoverySourceHandler ? ?(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/indices/recovery/StartRecoveryRequest;Lcom/groupbyinc/flux/indices/recovery/RecoverySettings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/common/logging/ESLogger;)V % ?
? ? :com/groupbyinc/flux/indices/recovery/RecoverySourceHandler
? add k(Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/indices/recovery/RecoverySourceHandler;)V
recoverToTarget 9()Lcom/groupbyinc/flux/indices/recovery/RecoveryResponse;
remove
java/lang/Throwable shardRouting 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; handler