com.groupbyinc.flux.gateway.TransportNodesListGatewayStartedShards.class Maven / Gradle / Ivy
???? 4? Bcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards ?Lcom/groupbyinc/flux/action/support/nodes/TransportNodesAction;Lcom/groupbyinc/flux/gateway/AsyncShardFetch$Lister; =com/groupbyinc/flux/action/support/nodes/TransportNodesAction 2com/groupbyinc/flux/gateway/AsyncShardFetch$Lister +TransportNodesListGatewayStartedShards.java [com/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeGatewayStartedShards NodeGatewayStartedShards Ncom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeRequest NodeRequest \com/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodesGatewayStartedShards NodesGatewayStartedShards Jcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request Request +com/groupbyinc/flux/gateway/AsyncShardFetch Lister /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names Dcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$Shard >com/groupbyinc/flux/indices/cluster/IndicesClusterStateService Shard 3com/groupbyinc/flux/env/NodeEnvironment$ShardLocker " 'com/groupbyinc/flux/env/NodeEnvironment $ ShardLocker %java/lang/invoke/MethodHandles$Lookup ' java/lang/invoke/MethodHandles ) Lookup ACTION_NAME Ljava/lang/String; %internal:gateway/local/started_shards . nodeEnv )Lcom/groupbyinc/flux/env/NodeEnvironment; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/indices/IndicesService;)V *Lcom/groupbyinc/flux/common/inject/Inject; "java/lang/invoke/LambdaMetafactory 7 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 :
8 ; < ()Ljava/lang/Object; > ()V 4 @
A B N()Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request; D get ()Ljava/util/function/Supplier; F G H
A J R()Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeRequest; L H fetch_shard_started O?(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;Ljava/lang/Class;)V 4 Q
R 0 1 T 2 3 V this DLcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; transportService 0Lcom/groupbyinc/flux/transport/TransportService;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; env list ?(Lcom/groupbyinc/flux/index/shard/ShardId;[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionListener;)V ](Lcom/groupbyinc/flux/index/shard/ShardId;[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;)V 4 i
j execute w(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task; l m
n shardId )Lcom/groupbyinc/flux/index/shard/ShardId; nodes 1[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; listener ?Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; transportCompress ()Z newNodeRequest ?(Ljava/lang/String;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeRequest; a(Ljava/lang/String;Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request;)V 4 {
| nodeId request LLcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request; newNodeResponse _()Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeGatewayStartedShards;
A newResponse ?(Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodesGatewayStartedShards; ^ _ ? 2com/groupbyinc/flux/cluster/service/ClusterService ? getClusterName +()Lcom/groupbyinc/flux/cluster/ClusterName; ? ?
? ? L(Lcom/groupbyinc/flux/cluster/ClusterName;Ljava/util/List;Ljava/util/List;)V 4 ?
? responses oLjava/util/List; Ljava/util/List; failures BLjava/util/List;
nodeOperation ?(Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeRequest;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeGatewayStartedShards; java/lang/Exception ?
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; ? ? ? !{} loading local shard state info ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? trace '(Ljava/lang/String;Ljava/lang/Object;)V ? ? ? ? 2com/groupbyinc/flux/index/shard/ShardStateMetaData ? FORMAT 1Lcom/groupbyinc/flux/gateway/MetaDataStateFormat; ? ? ? ? 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistry ? EMPTY ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; ? ? ? ?
access$000 {(Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeRequest;)Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? availableShardPaths @(Lcom/groupbyinc/flux/index/shard/ShardId;)[Ljava/nio/file/Path; ? ?
% ? /com/groupbyinc/flux/gateway/MetaDataStateFormat ? loadLatestState ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;[Ljava/nio/file/Path;)Ljava/lang/Object; ? ?
? ? state ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? (com/groupbyinc/flux/cluster/ClusterState ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? ? 'com/groupbyinc/flux/index/shard/ShardId ? getIndex #()Lcom/groupbyinc/flux/index/Index; ? ?
? ? -com/groupbyinc/flux/cluster/metadata/MetaData ? index W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? ? ?
indexPaths 8(Lcom/groupbyinc/flux/index/Index;)[Ljava/nio/file/Path; ? ?
% ? *com/groupbyinc/flux/ElasticsearchException ? "failed to find local IndexMetaData ? java/lang/Object ? ((Ljava/lang/String;[Ljava/lang/Object;)V 4 ?
? ? setShard ,(Lcom/groupbyinc/flux/index/shard/ShardId;)V ? ?
? ? *com/groupbyinc/flux/indices/IndicesService ? getShardOrNull q(Lcom/groupbyinc/flux/index/shard/ShardId;)Lcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$Shard; ? ?
? ? 'com/groupbyinc/flux/index/IndexSettings ? Z [ ? e(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/common/settings/Settings;)V 4 ?
? ? )com/groupbyinc/flux/index/shard/ShardPath ?
loadShardPath ?(Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)Lcom/groupbyinc/flux/index/shard/ShardPath; ? ?
? ? java/lang/IllegalStateException java/lang/StringBuilder
A append -(Ljava/lang/Object;)Ljava/lang/StringBuilder;
no shard path found
-(Ljava/lang/String;)Ljava/lang/StringBuilder;
toString ()Ljava/lang/String;
(Ljava/lang/String;)V 4
resolveIndex ()Ljava/nio/file/Path;
? getClass ()Ljava/lang/Class;
? O(Lcom/groupbyinc/flux/index/shard/ShardId;J)Lcom/groupbyinc/flux/env/ShardLock; shardLock
%!" lock `(Lcom/groupbyinc/flux/env/NodeEnvironment;)Lcom/groupbyinc/flux/env/NodeEnvironment$ShardLocker;$% & %com/groupbyinc/flux/index/store/Store( tryOpenIndex ?(Ljava/nio/file/Path;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/env/NodeEnvironment$ShardLocker;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V*+
), lambda$nodeOperation$0 ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/ShardStateMetaData;Lcom/groupbyinc/flux/index/shard/ShardPath;)Ljava/lang/Object;./
01 ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/shard/ShardStateMetaData;Lcom/groupbyinc/flux/index/shard/ShardPath;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; F3 4 W(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V ?6 ?7 allocationId 2Lcom/groupbyinc/flux/cluster/routing/AllocationId;9: ?; 0com/groupbyinc/flux/cluster/routing/AllocationId= getId?
>@ java/lang/StringB localNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;DE
?F primary ZHI ?J [(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;ZLjava/lang/Exception;)V 4L
M {} shard state info found: [{}]O debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)VQR ?S F(Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/String;Z)V 4U
V {} no local shard info foundX failed to load started shardsZ =(Ljava/lang/String;Ljava/lang/Throwable;[Ljava/lang/Object;)V 4\
?] e ,Lcom/groupbyinc/flux/ElasticsearchException;
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; finalShardPath +Lcom/groupbyinc/flux/index/shard/ShardPath; exception Ljava/lang/Exception; shardPath 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; shardStateMetaData 4Lcom/groupbyinc/flux/index/shard/ShardStateMetaData; PLcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodeRequest; w(Lcom/groupbyinc/flux/action/support/nodes/BaseNodeRequest;)Lcom/groupbyinc/flux/action/support/nodes/BaseNodeResponse; ? ?
m =()Lcom/groupbyinc/flux/action/support/nodes/BaseNodeResponse; ? ?
p ?(Ljava/lang/String;Lcom/groupbyinc/flux/action/support/nodes/BaseNodesRequest;)Lcom/groupbyinc/flux/action/support/nodes/BaseNodeRequest; y z
s ?(Lcom/groupbyinc/flux/action/support/nodes/BaseNodesRequest;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/action/support/nodes/BaseNodesResponse; ? ?
v Lcom/groupbyinc/flux/common/apache/logging/log4j/message/ParameterizedMessagex /{} can't open index for shard [{}] in path [{}]z [Ljava/lang/Object;| ~
y ?
ConstantValue Code LocalVariableTable LineNumberTable RuntimeVisibleAnnotations LocalVariableTypeTable Signature ?(Lcom/groupbyinc/flux/index/shard/ShardId;[Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Lcom/groupbyinc/flux/action/ActionListener;)V](Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$Request;Ljava/util/List;Ljava/util/List;)Lcom/groupbyinc/flux/gateway/TransportNodesListGatewayStartedShards$NodesGatewayStartedShards;
StackMapTable BootstrapMethods
SourceFile InnerClasses ! , - ? / 0 1 2 3 4 5 ? ? **+/,-? I ? N P
? S*? U*? W? ? \ * X Y * Z [ * \ ] * ^ _ * ` a * b c * d e * f 1 * 2 3 ? Q T # U ) V? 6 g h ? n *? Y+,? k-? oW? ? * X Y p q r s t v ? t u ?
[ \? ? w x ? , ? ? X Y ? ` y z ? H
?
Y+,? }? ?
X Y
~ -
? ? e ? ? ? 2 ?
Y? ?? ? X Y ? j ? ? ? u ? Y*? ?? ?,-? ?? ? * X Y ? ? ? ? ? ? ? ? ? ? ? p? ? ? ? ? Q ?+? ?M*? ??,? ? ? ?*? ?? ?*? U+? ?? ?? ?? ?N-?@*? ?? Ƕ ?,? Ӷ ?:? ? ?*? ?? ?*? U,? Ӷ ? ?? ?:? ? ?Y?? ? ?:+? ?? ??*? W,? ?? ?:? ?Y*? ?? ?:*? ?*? U,? :? ?Y?Y?,? ?????,*? UY?W?' *? ??-? H::*? ?,-?5 ?8 -?