com.groupbyinc.flux.action.update.TransportUpdateAction.class Maven / Gradle / Ivy
???? 4? 7com/groupbyinc/flux/action/update/TransportUpdateAction ?Lcom/groupbyinc/flux/action/support/single/instance/TransportInstanceSingleOperationAction; Ycom/groupbyinc/flux/action/support/single/instance/TransportInstanceSingleOperationAction TransportUpdateAction.java 9com/groupbyinc/flux/action/update/TransportUpdateAction$3 9com/groupbyinc/flux/action/update/TransportUpdateAction$2 9com/groupbyinc/flux/action/update/TransportUpdateAction$1 5com/groupbyinc/flux/action/update/UpdateHelper$Result
.com/groupbyinc/flux/action/update/UpdateHelper Result /com/groupbyinc/flux/threadpool/ThreadPool$Names )com/groupbyinc/flux/threadpool/ThreadPool Names 2com/groupbyinc/flux/action/DocWriteResponse$Result +com/groupbyinc/flux/action/DocWriteResponse Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo Bcom/groupbyinc/flux/action/support/replication/ReplicationResponse ShardInfo %java/lang/invoke/MethodHandles$Lookup java/lang/invoke/MethodHandles " Lookup
bulkAction 5Lcom/groupbyinc/flux/action/bulk/TransportBulkAction; autoCreateIndex 4Lcom/groupbyinc/flux/action/support/AutoCreateIndex; createIndexAction LLcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexAction; updateHelper 0Lcom/groupbyinc/flux/action/update/UpdateHelper; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; E(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/bulk/TransportBulkAction;Lcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexAction;Lcom/groupbyinc/flux/action/update/UpdateHelper;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/action/support/AutoCreateIndex;)V *Lcom/groupbyinc/flux/common/inject/Inject; indices:data/write/update 2 "java/lang/invoke/LambdaMetafactory 4 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; 6 7
5 8 9 ()Ljava/lang/Object; ; /com/groupbyinc/flux/action/update/UpdateRequest = ()V / ?
> @ A 3()Lcom/groupbyinc/flux/action/update/UpdateRequest; C get ()Ljava/util/function/Supplier; E F Gc(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;)V / I
J % & L ) * N + , P - . R ' ( T this 9Lcom/groupbyinc/flux/action/update/TransportUpdateAction; 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; executor ()Ljava/lang/String; index f newResponse 4()Lcom/groupbyinc/flux/action/update/UpdateResponse; 0com/groupbyinc/flux/action/update/UpdateResponse j
k @ retryOnFailure (Ljava/lang/Exception;)Z 3com/groupbyinc/flux/action/support/TransportActions o isShardNotAvailableException (Ljava/lang/Throwable;)Z q r
p s e Ljava/lang/Exception; resolveRequest ^(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/update/UpdateRequest;)V (com/groupbyinc/flux/cluster/ClusterState y metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; { |
z }
concreteIndex e
> ? resolveAndValidateRouting u(Lcom/groupbyinc/flux/cluster/metadata/MetaData;Ljava/lang/String;Lcom/groupbyinc/flux/action/update/UpdateRequest;)V ? ?
? state *Lcom/groupbyinc/flux/cluster/ClusterState; request 1Lcom/groupbyinc/flux/action/update/UpdateRequest; parent ? e
> ? routing ? e
> ? f e
> ? -com/groupbyinc/flux/cluster/metadata/MetaData ? resolveWriteIndexRouting J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ?
? ? E(Ljava/lang/String;)Lcom/groupbyinc/flux/action/update/UpdateRequest; ? ?
> ? type ? e
> ? routingRequired '(Ljava/lang/String;Ljava/lang/String;)Z ? ?
? ? 2com/groupbyinc/flux/action/RoutingMissingException ? id ? e
> ? 9(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V / ?
? ? /Lcom/groupbyinc/flux/cluster/metadata/MetaData; Ljava/lang/String; doExecute _(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V \ ] ? 2com/groupbyinc/flux/cluster/service/ClusterService ? ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? 2com/groupbyinc/flux/action/support/AutoCreateIndex ? shouldAutoCreate ?(Ljava/lang/String;Lcom/groupbyinc/flux/cluster/ClusterState;)Z ? ?
? ? Bcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest ?
? @ X(Ljava/lang/String;)Lcom/groupbyinc/flux/action/admin/indices/create/CreateIndexRequest; f ?
? ? auto(update api) ? cause ? ?
? ? timeout -()Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
> ? masterNodeTimeout j(Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/action/support/master/MasterNodeRequest; ? ?
? ? ?(Lcom/groupbyinc/flux/action/update/TransportUpdateAction;Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;)V / ?
? Jcom/groupbyinc/flux/action/admin/indices/create/TransportCreateIndexAction ? execute w(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/tasks/Task; ? ?
? ? innerExecute ? ?
? listener _Lcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; ?(Lcom/groupbyinc/flux/action/support/single/instance/InstanceShardOperationRequest;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
? shards ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/update/UpdateRequest;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;
getShardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
> ? routingTable 4()Lcom/groupbyinc/flux/cluster/routing/RoutingTable; ? ?
z ? 0com/groupbyinc/flux/cluster/routing/RoutingTable ? K(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/IndexRoutingTable; f ?
? ? 'com/groupbyinc/flux/index/shard/ShardId ? getId ()I ? ?
? ? 5com/groupbyinc/flux/cluster/routing/IndexRoutingTable ? shard ?(I)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable; ? ?
? ? :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? primaryShardIt 5()Lcom/groupbyinc/flux/cluster/routing/ShardIterator; ? ?
? ? operationRouting 8()Lcom/groupbyinc/flux/cluster/routing/OperationRouting;
? 4com/groupbyinc/flux/cluster/routing/OperationRouting indexShards ?(Lcom/groupbyinc/flux/cluster/ClusterState;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator;
1com/groupbyinc/flux/cluster/routing/ShardIterator
nextOrNull 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting;
0com/groupbyinc/flux/cluster/routing/ShardRouting primary ()Z
6com/groupbyinc/flux/cluster/routing/PlainShardIterator shardId ? java/util/Collections
singletonList $(Ljava/lang/Object;)Ljava/util/List;
<(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/util/List;)V /"
# emptyList ()Ljava/util/List;%&
' clusterState
shardIterator 3Lcom/groupbyinc/flux/cluster/routing/ShardIterator; 2Lcom/groupbyinc/flux/cluster/routing/ShardRouting; shardOperation `(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/ActionListener;I)V-.
/ getIndex #()Lcom/groupbyinc/flux/index/Index;12
?3 *com/groupbyinc/flux/indices/IndicesService5 indexServiceSafe K(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/index/IndexService;78
69 &com/groupbyinc/flux/index/IndexService; getShard /(I)Lcom/groupbyinc/flux/index/shard/IndexShard;=>
<? Z [ A java/util/ObjectsC requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object;EF
DG ()JI absoluteTimeInMillisKI
LM getAsLong N(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Ljava/util/function/LongSupplier;OP Q prepare ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Ljava/util/function/LongSupplier;)Lcom/groupbyinc/flux/action/update/UpdateHelper$Result;ST
U ;$SwitchMap$org$elasticsearch$action$DocWriteResponse$Result [IWX Y getResponseResult 6()Lcom/groupbyinc/flux/action/DocWriteResponse$Result;[\
] ordinal_ ?
` )com/groupbyinc/flux/action/ActionListenerb *com/groupbyinc/flux/index/shard/IndexShardd action 3()Lcom/groupbyinc/flux/common/io/stream/Streamable;fg
h -com/groupbyinc/flux/action/index/IndexRequestj source 3()Lcom/groupbyinc/flux/common/bytes/BytesReference;lm
kn Bcom/groupbyinc/flux/action/bulk/TransportSingleItemBulkWriteActionp toSingleItemBulkRequest v(Lcom/groupbyinc/flux/action/support/replication/ReplicatedWriteRequest;)Lcom/groupbyinc/flux/action/bulk/BulkRequest;rs
qt (Ljava/lang/Object;)Vv lambda$shardOperation$0 ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/index/IndexResponse;)Vxy
z{ 3(Lcom/groupbyinc/flux/action/index/IndexResponse;)V} accept ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;? ? lambda$shardOperation$1 u(Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/update/UpdateRequest;ILjava/lang/Exception;)V??
?? (Ljava/lang/Exception;)V? ?(Lcom/groupbyinc/flux/action/update/TransportUpdateAction;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/update/UpdateRequest;I)Ljava/util/function/Consumer;? ? wrap v(Lcom/groupbyinc/flux/common/CheckedConsumer;Ljava/util/function/Consumer;)Lcom/groupbyinc/flux/action/ActionListener;??c? wrapBulkResponse X(Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/action/ActionListener;??
q? 3com/groupbyinc/flux/action/bulk/TransportBulkAction?
? ? lambda$shardOperation$2 ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/update/UpdateHelper$Result;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/index/IndexResponse;)V??
?? ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/update/UpdateHelper$Result;Lcom/groupbyinc/flux/common/bytes/BytesReference;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;? ? lambda$shardOperation$3??
?? ? /com/groupbyinc/flux/action/delete/DeleteRequest? lambda$shardOperation$4 ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/update/UpdateHelper$Result;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/delete/DeleteResponse;)V??
?? 5(Lcom/groupbyinc/flux/action/delete/DeleteResponse;)V? ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/action/update/UpdateHelper$Result;Lcom/groupbyinc/flux/action/ActionListener;)Lcom/groupbyinc/flux/common/CheckedConsumer;? ? lambda$shardOperation$5??
?? ? indexService?8
6? getShardOrNull?>
<?
noopUpdate (Ljava/lang/String;)V??
e?
onResponse?vc? java/lang/IllegalStateException? java/lang/StringBuilder?
? @ Illegal result ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? -(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
?? toString? e
?? /?
??
upsertRequest /Lcom/groupbyinc/flux/action/index/IndexRequest; upsertSourceBytes 1Lcom/groupbyinc/flux/common/bytes/BytesReference; indexRequest indexSourceBytes
deleteRequest 1Lcom/groupbyinc/flux/action/delete/DeleteRequest; ,Lcom/groupbyinc/flux/index/shard/IndexShard; update 2Lcom/groupbyinc/flux/action/update/UpdateResponse; indexServiceOrNull (Lcom/groupbyinc/flux/index/IndexService;
retryCount I )Lcom/groupbyinc/flux/index/shard/ShardId;
indexShard result 7Lcom/groupbyinc/flux/action/update/UpdateHelper$Result; handleUpdateFailureWithRetry u(Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/update/UpdateRequest;Ljava/lang/Exception;I)V $com/groupbyinc/flux/ExceptionsHelper? unwrapCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable;??
?? ?com/groupbyinc/flux/index/engine/VersionConflictEngineException? retryOnConflict? ?
>? logger !Lorg/apache/logging/log4j/Logger;?? ? >Retry attempt [{}] of [{}] on version conflict on [{}][{}][{}]? java/lang/Integer? valueOf (I)Ljava/lang/Integer;??
? org/apache/logging/log4j/Logger trace o(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V d e
:(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService; d
?(Lcom/groupbyinc/flux/action/update/TransportUpdateAction;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/action/update/UpdateRequest;I)V /
$java/util/concurrent/ExecutorService (Ljava/lang/Runnable;)V ? java/lang/Throwable java/lang/Exception Dcom/groupbyinc/flux/common/io/stream/NotSerializableExceptionWrapper (Ljava/lang/Throwable;)V /
onFailure?c failure Ljava/lang/Throwable; ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/single/instance/InstanceShardOperationRequest;)Lcom/groupbyinc/flux/cluster/routing/ShardIterator; ? ?
$ (Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/single/instance/InstanceShardOperationRequest;)V w x
' -()Lcom/groupbyinc/flux/action/ActionResponse; h i
*- ?
, ? ?
. X(Lcom/groupbyinc/flux/action/ActionRequest;Lcom/groupbyinc/flux/action/ActionListener;)V??
1 exception 0com/groupbyinc/flux/action/delete/DeleteResponse4 getShardInfo P()Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;67
58
5 ? getType; e
5< ? e
5> getSeqNo@I
5A getPrimaryTermCI
5D
getVersionFI
5G getResultI\
5J ?(Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Ljava/lang/String;JJJLcom/groupbyinc/flux/action/DocWriteResponse$Result;)V /L
kM updatedSourceAsMap ()Ljava/util/Map;OP
Q updateSourceContentType 4()Lcom/groupbyinc/flux/common/xcontent/XContentType;ST
U extractGetResult ?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Ljava/lang/String;JLjava/util/Map;Lcom/groupbyinc/flux/common/xcontent/XContentType;Lcom/groupbyinc/flux/common/bytes/BytesReference;)Lcom/groupbyinc/flux/index/get/GetResult;WX
Y setGetResult ,(Lcom/groupbyinc/flux/index/get/GetResult;)V[\
k]
forcedRefresh_
5` setForcedRefresh (Z)Vbc
kd response 2Lcom/groupbyinc/flux/action/delete/DeleteResponse; .com/groupbyinc/flux/action/index/IndexResponseh
i8
i ?
i<
i>
iA
iD
iG
iJ
i` 0Lcom/groupbyinc/flux/action/index/IndexResponse; fetchSource @()Lcom/groupbyinc/flux/search/fetch/subphase/FetchSourceContext;tu
>v