com.groupbyinc.flux.index.reindex.TransportReindexAction.class Maven / Gradle / Ivy
???? 4w 8com/groupbyinc/flux/index/reindex/TransportReindexAction ?Lcom/groupbyinc/flux/action/support/HandledTransportAction; 9com/groupbyinc/flux/action/support/HandledTransportAction TransportReindexAction.java Qcom/groupbyinc/flux/index/reindex/TransportReindexAction$AsyncIndexBySearchAction AsyncIndexBySearchAction java/util/Map$Entry
java/util/Map Entry Ccom/groupbyinc/flux/common/http/client/config/RequestConfig$Builder ;com/groupbyinc/flux/common/http/client/config/RequestConfig Builder 4com/groupbyinc/flux/common/settings/Setting$Property +com/groupbyinc/flux/common/settings/Setting Property Bcom/groupbyinc/flux/client/RestClientBuilder$RequestConfigCallback ,com/groupbyinc/flux/client/RestClientBuilder RequestConfigCallback Ecom/groupbyinc/flux/client/RestClientBuilder$HttpClientConfigCallback HttpClientConfigCallback Hcom/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig$Builder ! @com/groupbyinc/flux/common/http/impl/nio/reactor/IOReactorConfig # %java/lang/invoke/MethodHandles$Lookup % java/lang/invoke/MethodHandles ' Lookup REMOTE_CLUSTER_WHITELIST -Lcom/groupbyinc/flux/common/settings/Setting; SLcom/groupbyinc/flux/common/settings/Setting;>; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService;
scriptService *Lcom/groupbyinc/flux/script/ScriptService; autoCreateIndex 4Lcom/groupbyinc/flux/action/support/AutoCreateIndex; client #Lcom/groupbyinc/flux/client/Client; remoteWhitelist OLcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/transport/TransportService;)V *Lcom/groupbyinc/flux/common/inject/Inject; indices:data/write/reindex : "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; > ?
= @ A ()Ljava/lang/Object; C 0com/groupbyinc/flux/index/reindex/ReindexRequest E ()V 7 G
F H I 4()Lcom/groupbyinc/flux/index/reindex/ReindexRequest; K get ()Ljava/util/function/Supplier; M N O/(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;)V 7 Q
R - . T / 0 V 1 2 X 3 4 Z * + \ B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object; M ^
_ java/util/List a buildRemoteWhitelist a(Ljava/util/List;)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton; c d
e 5 6 g this :Lcom/groupbyinc/flux/index/reindex/TransportReindexAction; settings .Lcom/groupbyinc/flux/common/settings/Settings;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; transportService 0Lcom/groupbyinc/flux/transport/TransportService; doExecute ?(Lcom/groupbyinc/flux/tasks/Task;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/action/ActionListener;)V
getRemoteInfo 0()Lcom/groupbyinc/flux/index/reindex/RemoteInfo; w x
F y checkRemoteWhitelist ?(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton;Lcom/groupbyinc/flux/index/reindex/RemoteInfo;)V { |
} 2com/groupbyinc/flux/cluster/service/ClusterService state ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? getSearchRequest 3()Lcom/groupbyinc/flux/action/search/SearchRequest; ? ?
F ? getDestination 1()Lcom/groupbyinc/flux/action/index/IndexRequest; ? ?
F ? q r ? validateAgainstAliases1(Lcom/groupbyinc/flux/action/search/SearchRequest;Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/index/reindex/RemoteInfo;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;Lcom/groupbyinc/flux/cluster/ClusterState;)V ? ?
? 2com/groupbyinc/flux/index/reindex/BulkByScrollTask ? /com/groupbyinc/flux/index/reindex/ReindexAction ? INSTANCE 1Lcom/groupbyinc/flux/index/reindex/ReindexAction; ? ? ? ? localNode 2()Lcom/groupbyinc/flux/cluster/node/DiscoveryNode; ? ?
? ? G lambda$doExecute$0 ?(Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? ? run(Lcom/groupbyinc/flux/index/reindex/TransportReindexAction;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)Ljava/lang/Runnable; ? ? ? Ccom/groupbyinc/flux/index/reindex/BulkByScrollParallelizationHelper ? startSlicedAction+(Lcom/groupbyinc/flux/index/reindex/AbstractBulkByScrollRequest;Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask;Lcom/groupbyinc/flux/action/Action;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/cluster/node/DiscoveryNode;Ljava/lang/Runnable;)V ? ?
? ? task Lcom/groupbyinc/flux/tasks/Task; request 2Lcom/groupbyinc/flux/index/reindex/ReindexRequest; listener eLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; *Lcom/groupbyinc/flux/cluster/ClusterState; bulkByScrollTask 4Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask; `(Lcom/groupbyinc/flux/index/reindex/ReindexRequest;Lcom/groupbyinc/flux/action/ActionListener;)V 'java/lang/UnsupportedOperationException ?
task required ? (Ljava/lang/String;)V 7 ?
? ? java/lang/StringBuilder ?
? H ,com/groupbyinc/flux/index/reindex/RemoteInfo ? getHost ()Ljava/lang/String; ? ?
? ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (C)Ljava/lang/StringBuilder; ? ?
? ? getPort ()I ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? toString ? ?
? ? Mcom/groupbyinc/flux/common/apache/lucene/util/automaton/CharacterRunAutomaton ? (Ljava/lang/String;)Z ? ?
? ? java/lang/String ? "java/lang/IllegalArgumentException ? ] not whitelisted in ? getKey ? ?
?
? ? whitelist
remoteInfo .Lcom/groupbyinc/flux/index/reindex/RemoteInfo; check Ljava/lang/String; isEmpty ()Z ? ? b ? @com/groupbyinc/flux/common/apache/lucene/util/automaton/Automata ? makeEmpty E()Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton; ? ?
? ? F(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)V 7 ?
? ? "com/groupbyinc/flux/common/Strings ? EMPTY_ARRAY [Ljava/lang/String; ? ? ? toArray (([Ljava/lang/Object;)[Ljava/lang/Object; b ? &com/groupbyinc/flux/common/regex/Regex simpleMatchToAutomaton X([Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;
Ncom/groupbyinc/flux/common/apache/lucene/util/automaton/MinimizationOperations
minimize ?(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;I)Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;
Bcom/groupbyinc/flux/common/apache/lucene/util/automaton/Operations isTotal F(Lcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton;)Z
$Refusing to start because whitelist -(Ljava/lang/Object;)Ljava/lang/StringBuilder; ?
? ? accepts all addresses. This would allow users to reindex-from-remote any URL they like effectively having Elasticsearch make HTTP GETs for them. Acom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton $Ljava/util/List; Ljava/util/List; automaton CLcom/groupbyinc/flux/common/apache/lucene/util/automaton/Automaton; -com/groupbyinc/flux/action/index/IndexRequest& index( ?
') 2com/groupbyinc/flux/action/support/AutoCreateIndex+ shouldAutoCreate ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Z-.
,/ @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver1 concreteIndexNames j(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/IndicesRequest;)[Ljava/lang/String;34
25 equals (Ljava/lang/Object;)Z78
?9 ;com/groupbyinc/flux/action/ActionRequestValidationException;
<