
com.groupbyinc.flux.index.reindex.TransportReindexAction$AsyncIndexBySearchAction.class Maven / Gradle / Ivy
???? 4 Qcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchAction wLcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction; Acom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction TransportReindexAction.java 8com/groupbyinc/flux/index/reindex/TransportReindexAction AsyncIndexBySearchAction fcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchAction$ReindexScriptApplier
ReindexScriptApplier 8com/groupbyinc/flux/action/bulk/BulkItemResponse$Failure
0com/groupbyinc/flux/action/bulk/BulkItemResponse Failure Ccom/groupbyinc/flux/index/reindex/ScrollableHitSource$SearchFailure 5com/groupbyinc/flux/index/reindex/ScrollableHitSource
SearchFailure Pcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper RequestWrapper 9com/groupbyinc/flux/index/reindex/ScrollableHitSource$Hit Hit 8com/groupbyinc/flux/common/xcontent/XContentParser$Token 2com/groupbyinc/flux/common/xcontent/XContentParser Token %java/lang/invoke/MethodHandles$Lookup " java/lang/invoke/MethodHandles $ Lookup createdThreads Ljava/util/List; $Ljava/util/List; $assertionsDisabled Z j(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/client/ParentTaskAssigningClient;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V 4com/groupbyinc/flux/client/ParentTaskAssigningClient . settings 0()Lcom/groupbyinc/flux/common/settings/Settings; 0 1
/ 2?(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/client/ParentTaskAssigningClient;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/settings/Settings;)V , 4
5 this SLcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchAction; task 4Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask; logger !Lorg/apache/logging/log4j/Logger; client 6Lcom/groupbyinc/flux/client/ParentTaskAssigningClient;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; request 2Lcom/groupbyinc/flux/index/reindex/ReindexRequest;
scriptService *Lcom/groupbyinc/flux/script/ScriptService; clusterState *Lcom/groupbyinc/flux/cluster/ClusterState; listener eLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener;?(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/client/ParentTaskAssigningClient;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/index/reindex/AbstractBulkByScrollRequest;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/settings/Settings;)V , J
K java/util/Collections M emptyList ()Ljava/util/List; O P
N Q ' ( S .Lcom/groupbyinc/flux/common/settings/Settings; needsSourceDocumentVersions ()Z mainRequest ?Lcom/groupbyinc/flux/index/reindex/AbstractBulkByScrollRequest; X Y Z 0com/groupbyinc/flux/index/reindex/ReindexRequest \ getDestination 1()Lcom/groupbyinc/flux/action/index/IndexRequest; ^ _
] ` -com/groupbyinc/flux/action/index/IndexRequest b versionType )()Lcom/groupbyinc/flux/index/VersionType; d e
c f %com/groupbyinc/flux/index/VersionType h INTERNAL 'Lcom/groupbyinc/flux/index/VersionType; j k i l buildScrollableResultSource h(Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;)Lcom/groupbyinc/flux/index/reindex/ScrollableHitSource;
getRemoteInfo 0()Lcom/groupbyinc/flux/index/reindex/RemoteInfo; p q
] r java/util/ArrayList t ()V , v
u w synchronizedList "(Ljava/util/List;)Ljava/util/List; y z
N { 9 : } 2com/groupbyinc/flux/index/reindex/BulkByScrollTask getId ()J ? ?
? ? buildRestClient h(Lcom/groupbyinc/flux/index/reindex/RemoteInfo;JLjava/util/List;)Lcom/groupbyinc/flux/client/RestClient; ? ?
? Bcom/groupbyinc/flux/index/reindex/remote/RemoteScrollableHitSource ? ; < ? ? @ ? worker ?Lcom/groupbyinc/flux/index/reindex/WorkerBulkByScrollTaskState; ? ? ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? "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; ? ?
? ? ? v =com/groupbyinc/flux/index/reindex/WorkerBulkByScrollTaskState ? countSearchRetry ? v
? ? ? run U(Lcom/groupbyinc/flux/index/reindex/WorkerBulkByScrollTaskState;)Ljava/lang/Runnable; ? ? ? (Ljava/lang/Object;)V ? finishHim (Ljava/lang/Exception;)V ? ?
? ? ? accept r(Lcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchAction;)Ljava/util/function/Consumer; ? ? ? ,com/groupbyinc/flux/index/reindex/RemoteInfo ? getQuery 3()Lcom/groupbyinc/flux/common/bytes/BytesReference; ? ?
? ? getSearchRequest 3()Lcom/groupbyinc/flux/action/search/SearchRequest; ? ?
] ?8(Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/action/bulk/BackoffPolicy;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/Runnable;Ljava/util/function/Consumer;Lcom/groupbyinc/flux/client/RestClient;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/search/SearchRequest;)V , ?
? ? n o
?
remoteInfo .Lcom/groupbyinc/flux/index/reindex/RemoteInfo;
restClient 'Lcom/groupbyinc/flux/client/RestClient;
backoffPolicy /Lcom/groupbyinc/flux/action/bulk/BackoffPolicy; 9(Ljava/lang/Exception;Ljava/util/List;Ljava/util/List;Z)V ? ?
? java/util/List ? iterator ()Ljava/util/Iterator; ? ? ? ? java/util/Iterator ? hasNext ? W ? ? next ()Ljava/lang/Object; ? ? ? ? java/lang/Thread ? isAlive ? W
? ? * + ? java/lang/AssertionError ? java/lang/StringBuilder ?
? w 'Failed to properly stop client thread [ ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? getName ()Ljava/lang/String; ? ?
? ? ] ? toString ? ?
? ? , ?
? ? *Failed to properly stop client thread [{}] ? org/apache/logging/log4j/Logger ? error '(Ljava/lang/String;Ljava/lang/Object;)V ? ? thread Ljava/lang/Thread; failure Ljava/lang/Exception; indexingFailures LLjava/util/List; searchFailures WLjava/util/List; timedOut buildScriptApplier !()Ljava/util/function/BiFunction; getScript %()Lcom/groupbyinc/flux/script/Script;
] C D !com/groupbyinc/flux/script/Script getParams ()Ljava/util/Map;
?(Lcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchAction;Lcom/groupbyinc/flux/index/reindex/WorkerBulkByScrollTaskState;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/script/Script;Ljava/util/Map;)V ,
script #Lcom/groupbyinc/flux/script/Script; buildRequest ?(Lcom/groupbyinc/flux/index/reindex/ScrollableHitSource$Hit;)Lcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper; java/lang/Throwable# java/io/IOException%
c w index( ?
c) W(Ljava/lang/String;)Lcom/groupbyinc/flux/action/support/replication/ReplicationRequest;(+
c, type. ?
c/ getType1 ? 2 C(Ljava/lang/String;)Lcom/groupbyinc/flux/action/index/IndexRequest;.4
c5 X(Lcom/groupbyinc/flux/index/VersionType;)Lcom/groupbyinc/flux/action/index/IndexRequest; d7
c8
getVersion: ? ;???????? &fetched version when we didn't have to? versionA ?
cB 2(J)Lcom/groupbyinc/flux/action/index/IndexRequest;AD
cE ? ? G idI4
cJ getXContentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType;LM N getContentTypePM
cQ getSourceS ? T /com/groupbyinc/flux/common/bytes/BytesReferenceV streamInput 4()Lcom/groupbyinc/flux/common/io/stream/StreamInput;XY
WZ 0com/groupbyinc/flux/common/xcontent/XContentType\ xContent 0()Lcom/groupbyinc/flux/common/xcontent/XContent;^_
]` 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryb EMPTY ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;de cf 6com/groupbyinc/flux/common/xcontent/DeprecationHandlerh THROW_UNSUPPORTED_OPERATION 8Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;jk il ,com/groupbyinc/flux/common/xcontent/XContentn createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/xcontent/DeprecationHandler;Ljava/io/InputStream;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;pqor 3com/groupbyinc/flux/common/xcontent/XContentBuildert builder e(Lcom/groupbyinc/flux/common/xcontent/XContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;vw
ux nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;z{ | copyCurrentStructure k(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;~
u? bytes h(Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;)Lcom/groupbyinc/flux/common/bytes/BytesReference;??
W? contentType?M
u? source ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/index/IndexRequest;??
c? $closeResource 1(Ljava/lang/Throwable;Ljava/lang/AutoCloseable;)V??
? java/io/InputStream? java/io/UncheckedIOException? failed to convert hit from ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ??
?? to ? *(Ljava/lang/String;Ljava/io/IOException;)V ,?
?? routing? ?
c??4
c? parent? ?
c??4
c? getPipeline? ?
c? setPipeline?4
c? wrap ?(Lcom/groupbyinc/flux/action/index/IndexRequest;)Lcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper;??
? 5Lcom/groupbyinc/flux/common/xcontent/XContentBuilder; parser 4Lcom/groupbyinc/flux/common/xcontent/XContentParser; stream Ljava/io/InputStream; e Ljava/io/IOException; doc ;Lcom/groupbyinc/flux/index/reindex/ScrollableHitSource$Hit; /Lcom/groupbyinc/flux/action/index/IndexRequest; sourceXContentType 2Lcom/groupbyinc/flux/common/xcontent/XContentType; mainRequestXContentType copyRouting g(Lcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper;Ljava/lang/String;)V??
? java/lang/String? =?
startsWith (Ljava/lang/String;)Z??
?? substring (I)Ljava/lang/String;??
?? hashCode ()I??
?? keep? equals (Ljava/lang/Object;)Z??
?? discard? "java/lang/IllegalArgumentException? Unsupported routing command? (Ljava/lang/String;)V ,?
?? ULcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper<*>; RLcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper; Ljava/lang/String; routingSpec java/lang/AutoCloseable? close? v??
addSuppressed (Ljava/lang/Throwable;)V??
$? x0 Ljava/lang/Throwable; x1 Ljava/lang/AutoCloseable; java/lang/Class? desiredAssertionStatus? W
?? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable?(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/client/ParentTaskAssigningClient;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V?(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/client/ParentTaskAssigningClient;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/common/settings/Settings;)V
StackMapTable ?(Ljava/lang/Exception;Ljava/util/List;Ljava/util/List;Z)V()Ljava/util/function/BiFunction;Lcom/groupbyinc/flux/index/reindex/ScrollableHitSource$Hit;Lcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper<*>;>; ?(Lcom/groupbyinc/flux/index/reindex/ScrollableHitSource$Hit;)Lcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper; j(Lcom/groupbyinc/flux/index/reindex/AbstractAsyncBulkByScrollAction$RequestWrapper<*>;Ljava/lang/String;)V BootstrapMethods
SourceFile InnerClasses ' ( ? ) * +
, - ? ?
*+,--? 3? 6? ? \ 7 8 9 : ; <