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 ?(Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask;Lcom/groupbyinc/flux/common/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/WorkingBulkByScrollTask;Lcom/groupbyinc/flux/common/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 ;Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask; logger 8Lcom/groupbyinc/flux/common/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/WorkingBulkByScrollTask;Lcom/groupbyinc/flux/common/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 : } 9com/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask 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 ? ; < ? ? @ ? java/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? "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 countSearchRetry ? v
? ? ? run Q(Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask;)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; ? ?
] ?O(Lcom/groupbyinc/flux/common/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 [{}] ? 6com/groupbyinc/flux/common/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/WorkingBulkByScrollTask;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) getType+ ? , C(Ljava/lang/String;)Lcom/groupbyinc/flux/action/index/IndexRequest;(.
c/ X(Lcom/groupbyinc/flux/index/VersionType;)Lcom/groupbyinc/flux/action/index/IndexRequest; d1
c2
getVersion4 ? 5???????? &fetched version when we didn't have to9 version; ?
c< 2(J)Lcom/groupbyinc/flux/action/index/IndexRequest;;>
c? ? ? A idC.
cD getXContentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType;FG H getContentTypeJG
cK 0com/groupbyinc/flux/common/xcontent/XContentTypeM xContent 0()Lcom/groupbyinc/flux/common/xcontent/XContent;OP
NQ 9com/groupbyinc/flux/common/xcontent/NamedXContentRegistryS EMPTY ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;UV TW getSourceY ? Z ,com/groupbyinc/flux/common/xcontent/XContent\ createParser ?(Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/common/xcontent/XContentParser;^_]` 3com/groupbyinc/flux/common/xcontent/XContentBuilderb builder e(Lcom/groupbyinc/flux/common/xcontent/XContent;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;de
cf nextToken <()Lcom/groupbyinc/flux/common/xcontent/XContentParser$Token;hi j copyCurrentStructure k(Lcom/groupbyinc/flux/common/xcontent/XContentParser;)Lcom/groupbyinc/flux/common/xcontent/XContentBuilder;lm
cn bytesp ?
cq contentTypesG
ct source ?(Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/common/xcontent/XContentType;)Lcom/groupbyinc/flux/action/index/IndexRequest;vw
cx closez v
c{
addSuppressed (Ljava/lang/Throwable;)V}~
{ java/io/UncheckedIOException? failed to convert hit from ? -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ??
?? to ? *(Ljava/lang/String;Ljava/io/IOException;)V ,?
?? routing? ?
c??.
c? parent? ?
c??.
c? getPipeline? ?
c? setPipeline?.
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; 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/Class? desiredAssertionStatus? W
?? Signature Code LocalVariableTable LocalVariableTypeTable LineNumberTable?(Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask;Lcom/groupbyinc/flux/common/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/WorkingBulkByScrollTask;Lcom/groupbyinc/flux/common/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 : ; <