com.groupbyinc.flux.action.bulk.TransportShardBulkAction.class Maven / Gradle / Ivy
???? 4? 8com/groupbyinc/flux/action/bulk/TransportShardBulkAction ?Lcom/groupbyinc/flux/action/support/replication/TransportWriteAction; Ccom/groupbyinc/flux/action/support/replication/TransportWriteAction TransportShardBulkAction.java :com/groupbyinc/flux/action/bulk/TransportShardBulkAction$1 Wcom/groupbyinc/flux/action/bulk/TransportShardBulkAction$ConcreteMappingUpdatePerformer ConcreteMappingUpdatePerformer Qcom/groupbyinc/flux/action/bulk/TransportShardBulkAction$ReplicaItemExecutionMode ReplicaItemExecutionMode Vcom/groupbyinc/flux/action/support/replication/TransportWriteAction$WritePrimaryResult WritePrimaryResult 4com/groupbyinc/flux/index/translog/Translog$Location +com/groupbyinc/flux/index/translog/Translog Location 3com/groupbyinc/flux/index/engine/Engine$IndexResult 'com/groupbyinc/flux/index/engine/Engine IndexResult 4com/groupbyinc/flux/index/engine/Engine$DeleteResult DeleteResult .com/groupbyinc/flux/index/engine/Engine$Result Result 1com/groupbyinc/flux/action/DocWriteRequest$OpType " *com/groupbyinc/flux/action/DocWriteRequest $ OpType 5com/groupbyinc/flux/action/update/UpdateHelper$Result ' .com/groupbyinc/flux/action/update/UpdateHelper ) 1com/groupbyinc/flux/index/engine/Engine$Operation + Operation 6com/groupbyinc/flux/index/engine/Engine$Operation$TYPE . TYPE Vcom/groupbyinc/flux/action/support/replication/TransportWriteAction$WriteReplicaResult 1 WriteReplicaResult 8com/groupbyinc/flux/action/bulk/BulkItemResponse$Failure 4 0com/groupbyinc/flux/action/bulk/BulkItemResponse 6 Failure Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult 9 Icom/groupbyinc/flux/action/support/replication/TransportReplicationAction ;
ReplicaResult Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryResult >
PrimaryResult /com/groupbyinc/flux/threadpool/ThreadPool$Names A )com/groupbyinc/flux/threadpool/ThreadPool C Names Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo F Bcom/groupbyinc/flux/action/support/replication/ReplicationResponse H ShardInfo acom/groupbyinc/flux/action/support/replication/TransportReplicationAction$RetryOnReplicaException K RetryOnReplicaException [com/groupbyinc/flux/action/support/replication/ReplicationOperation$RetryOnPrimaryException N Ccom/groupbyinc/flux/action/support/replication/ReplicationOperation P RetryOnPrimaryException 3com/groupbyinc/flux/index/engine/Engine$Result$Type S Type 2com/groupbyinc/flux/action/DocWriteResponse$Result V +com/groupbyinc/flux/action/DocWriteResponse X 2com/groupbyinc/flux/index/engine/Engine$NoOpResult Z
NoOpResult %java/lang/invoke/MethodHandles$Lookup ] java/lang/invoke/MethodHandles _ Lookup ACTION_NAME Ljava/lang/String; indices:data/write/bulk[s] d logger !Lorg/apache/logging/log4j/Logger; updateHelper 0Lcom/groupbyinc/flux/action/update/UpdateHelper; mappingUpdatedAction ?Lcom/groupbyinc/flux/cluster/action/index/MappingUpdatedAction; $assertionsDisabled Z
(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;Lcom/groupbyinc/flux/cluster/action/index/MappingUpdatedAction;Lcom/groupbyinc/flux/action/update/UpdateHelper;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)V *Lcom/groupbyinc/flux/common/inject/Inject; "java/lang/invoke/LambdaMetafactory q 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; s t
r u v ()Ljava/lang/Object; x 0com/groupbyinc/flux/action/bulk/BulkShardRequest z ()V n |
{ } ~ 4()Lcom/groupbyinc/flux/action/bulk/BulkShardRequest; ? get ()Ljava/util/function/Supplier; ? ? ? write ??(Lcom/groupbyinc/flux/common/settings/Settings;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;Lcom/groupbyinc/flux/action/support/ActionFilters;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Ljava/util/function/Supplier;Ljava/util/function/Supplier;Ljava/lang/String;)V n ?
? h i ? j k ? this :Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction; settings .Lcom/groupbyinc/flux/common/settings/Settings; transportService 0Lcom/groupbyinc/flux/transport/TransportService; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; indicesService ,Lcom/groupbyinc/flux/indices/IndicesService;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; shardStateAction ;Lcom/groupbyinc/flux/cluster/action/shard/ShardStateAction;
actionFilters 2Lcom/groupbyinc/flux/action/support/ActionFilters; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; transportOptions 9()Lcom/groupbyinc/flux/transport/TransportRequestOptions; *com/groupbyinc/flux/action/bulk/BulkAction ? INSTANCE ,Lcom/groupbyinc/flux/action/bulk/BulkAction; ? ? ? ? ? ? ? g(Lcom/groupbyinc/flux/common/settings/Settings;)Lcom/groupbyinc/flux/transport/TransportRequestOptions; ? ?
? ? newResponseInstance 5()Lcom/groupbyinc/flux/action/bulk/BulkShardResponse; 1com/groupbyinc/flux/action/bulk/BulkShardResponse ?
? } resolveIndex ()Z shardOperationOnPrimary ?(Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;)Lcom/groupbyinc/flux/action/support/replication/TransportWriteAction$WritePrimaryResult; java/lang/Exception ? ? ? ? java/util/Objects ? requireNonNull &(Ljava/lang/Object;)Ljava/lang/Object; ? ?
? ? ()J ? absoluteTimeInMillis ? ?
D ? ? getAsLong N(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Ljava/util/function/LongSupplier; ? ? ? =(Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction;)V n ?
? performOnPrimaryA(Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/update/UpdateHelper;Ljava/util/function/LongSupplier;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/action/support/replication/TransportWriteAction$WritePrimaryResult; ? ?
? request 2Lcom/groupbyinc/flux/action/bulk/BulkShardRequest; primary ,Lcom/groupbyinc/flux/index/shard/IndexShard; *com/groupbyinc/flux/index/shard/IndexShard ?
indexSettings +()Lcom/groupbyinc/flux/index/IndexSettings; ? ?
? ? 'com/groupbyinc/flux/index/IndexSettings ? getIndexMetaData 6()Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? 2com/groupbyinc/flux/cluster/metadata/IndexMetaData ? items 4()[Lcom/groupbyinc/flux/action/bulk/BulkItemRequest; ? ?
{ ? /com/groupbyinc/flux/action/bulk/BulkItemRequest ? getPrimaryResponse 4()Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; ? ?
? ? isAborted 5(Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;)Z ? ?
? executeBulkItemRequest?(Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/index/translog/Translog$Location;ILcom/groupbyinc/flux/action/update/UpdateHelper;Ljava/util/function/LongSupplier;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/index/translog/Translog$Location; ? ?
? 3[Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; ? 2[Lcom/groupbyinc/flux/action/bulk/BulkItemRequest; ? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
{ ? _(Lcom/groupbyinc/flux/index/shard/ShardId;[Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;)V n ?
? ? f g &(Lcom/groupbyinc/flux/action/support/replication/ReplicatedWriteRequest;Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse;Lcom/groupbyinc/flux/index/translog/Translog$Location;Ljava/lang/Exception;Lcom/groupbyinc/flux/index/shard/IndexShard;Lorg/apache/logging/log4j/Logger;)V n
requestIndex I i nowInMillisSupplier !Ljava/util/function/LongSupplier; mappingUpdater 8Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer; metaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; location 6Lcom/groupbyinc/flux/index/translog/Translog$Location; responses response 3Lcom/groupbyinc/flux/action/bulk/BulkShardResponse; executeIndexRequest ?(Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/action/bulk/BulkItemRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder; executeIndexRequestOnPrimary ?(Lcom/groupbyinc/flux/action/index/IndexRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/index/engine/Engine$IndexResult;
<$SwitchMap$org$elasticsearch$index$engine$Engine$Result$Type [I
getResultType 7()Lcom/groupbyinc/flux/index/engine/Engine$Result$Type;
ordinal ()I"#
T$ .com/groupbyinc/flux/action/index/IndexResponse&
? ? -com/groupbyinc/flux/action/index/IndexRequest) type ()Ljava/lang/String;+,
*- id/,
*0 getSeqNo2 ?
3 getTerm5 ?
6
getVersion8 ?
9 isCreated; ?
< T(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Ljava/lang/String;JJJZ)V n>
'? 4com/groupbyinc/flux/action/bulk/BulkItemResultHolderA ?(Lcom/groupbyinc/flux/action/DocWriteResponse;Lcom/groupbyinc/flux/index/engine/Engine$Result;Lcom/groupbyinc/flux/action/bulk/BulkItemRequest;)V nC
BD java/lang/AssertionErrorF java/lang/StringBuilderH
I } unknown result type for K append -(Ljava/lang/String;)Ljava/lang/StringBuilder;MN
IO -(Ljava/lang/Object;)Ljava/lang/StringBuilder;MQ
IR : T toStringV,
IW (Ljava/lang/Object;)V nY
GZ 0Lcom/groupbyinc/flux/action/index/IndexResponse; indexRequest /Lcom/groupbyinc/flux/action/index/IndexRequest; bulkItemRequest 1Lcom/groupbyinc/flux/action/bulk/BulkItemRequest; indexResult 5Lcom/groupbyinc/flux/index/engine/Engine$IndexResult; executeDeleteRequest ?(Lcom/groupbyinc/flux/action/delete/DeleteRequest;Lcom/groupbyinc/flux/action/bulk/BulkItemRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder; executeDeleteRequestOnPrimary ?(Lcom/groupbyinc/flux/action/delete/DeleteRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/index/engine/Engine$DeleteResult;ef
g
0com/groupbyinc/flux/action/delete/DeleteResponsej /com/groupbyinc/flux/action/delete/DeleteRequestl
m-
m0
3
6
9 isFounds ?
t
k? )delete operation leaked a mapping update w 2Lcom/groupbyinc/flux/action/delete/DeleteResponse;
deleteRequest 1Lcom/groupbyinc/flux/action/delete/DeleteRequest; deleteResult 6Lcom/groupbyinc/flux/index/engine/Engine$DeleteResult; calculateTranslogLocation ?(Lcom/groupbyinc/flux/index/translog/Translog$Location;Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder;)Lcom/groupbyinc/flux/index/translog/Translog$Location; operationResult 0Lcom/groupbyinc/flux/index/engine/Engine$Result;?? B?
SUCCESS 5Lcom/groupbyinc/flux/index/engine/Engine$Result$Type;?? T? getTranslogLocation 8()Lcom/groupbyinc/flux/index/translog/Translog$Location;??
? locationToSync ?(Lcom/groupbyinc/flux/index/translog/Translog$Location;Lcom/groupbyinc/flux/index/translog/Translog$Location;)Lcom/groupbyinc/flux/index/translog/Translog$Location;??
? originalLocation bulkItemResult 6Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder; createPrimaryResponse ?(Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder;Lcom/groupbyinc/flux/action/DocWriteRequest$OpType;Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;)Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; -Lcom/groupbyinc/flux/action/DocWriteResponse;? B? replicaRequest?` B? l m ? getResult 6()Lcom/groupbyinc/flux/action/DocWriteResponse$Result;??
Y? NOOP 4Lcom/groupbyinc/flux/action/DocWriteResponse$Result;?? W? +only noop updates can have a null operation?/#
?? d(ILcom/groupbyinc/flux/action/DocWriteRequest$OpType;Lcom/groupbyinc/flux/action/DocWriteResponse;)V n?
7? getResponse /()Lcom/groupbyinc/flux/action/DocWriteResponse;??
7?
G } setShardInfo Q(Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;)V??
Y? FAILURE?? T? .()Lcom/groupbyinc/flux/action/DocWriteRequest; ??
??
getFailure ()Ljava/lang/Exception;??
? isConflictException (Ljava/lang/Exception;)Z??
? ,()Lorg/apache/logging/log4j/message/Message;? lambda$createPrimaryResponse$0 ?(Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/action/DocWriteRequest;)Lorg/apache/logging/log4j/message/Message;??
?? ?(Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/action/DocWriteRequest;)Lorg/apache/logging/log4j/util/MessageSupplier; ?? ? org/apache/logging/log4j/Logger? trace G(Lorg/apache/logging/log4j/util/MessageSupplier;Ljava/lang/Throwable;)V???? lambda$createPrimaryResponse$1??
?? ? debug???? opType 5()Lcom/groupbyinc/flux/action/DocWriteRequest$OpType;?? %? index?,
{? %- %0
3 O(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;J)V n?
5? q(ILcom/groupbyinc/flux/action/DocWriteRequest$OpType;Lcom/groupbyinc/flux/action/bulk/BulkItemResponse$Failure;)V n?
7? ,replica request must have a primary response? primaryResponse 2Lcom/groupbyinc/flux/action/bulk/BulkItemResponse; docWriteRequest ,Lcom/groupbyinc/flux/action/DocWriteRequest; failure Ljava/lang/Exception; 3Lcom/groupbyinc/flux/action/DocWriteRequest$OpType; :$SwitchMap$org$elasticsearch$action$DocWriteRequest$OpType? ?
#$
? /com/groupbyinc/flux/action/update/UpdateRequest? executeUpdateRequest?(Lcom/groupbyinc/flux/action/update/UpdateRequest;Lcom/groupbyinc/flux/index/shard/IndexShard;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;ILcom/groupbyinc/flux/action/update/UpdateHelper;Ljava/util/function/LongSupplier;Lcom/groupbyinc/flux/action/bulk/MappingUpdatePerformer;)Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder;??
?cd
java/lang/IllegalStateException unexpected opType [ ] found (Ljava/lang/String;)V n
??
setPrimaryResponse 5(Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;)V
?~
responseHolder itemRequest isFailed ?
7 <()Lcom/groupbyinc/flux/action/bulk/BulkItemResponse$Failure;?
7 ? ?
5 $com/groupbyinc/flux/ExceptionsHelper unwrapCause ,(Ljava/lang/Throwable;)Ljava/lang/Throwable; !
" ?com/groupbyinc/flux/index/engine/VersionConflictEngineException$ e processUpdateResponse(Lcom/groupbyinc/flux/action/update/UpdateRequest;Ljava/lang/String;Lcom/groupbyinc/flux/index/engine/Engine$Result;Lcom/groupbyinc/flux/action/update/UpdateHelper$Result;Lcom/groupbyinc/flux/index/shard/IndexShard;I)Lcom/groupbyinc/flux/action/bulk/BulkItemResultHolder;???????? /failed result should not have a sequence number+ getOperationType :()Lcom/groupbyinc/flux/index/engine/Engine$Operation$TYPE;-.
/ INDEX 8Lcom/groupbyinc/flux/index/engine/Engine$Operation$TYPE;12 /3 java/lang/Object5 getClass ()Ljava/lang/Class;78
69 action 3()Lcom/groupbyinc/flux/common/io/stream/Streamable;;<
(=
6
9 0com/groupbyinc/flux/action/update/UpdateResponseA getShardInfo P()Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;CD
'E
getShardIdG ?
'H getTypeJ,
'K getIdM,
'N
'3 getPrimaryTermQ ?
'R
'9
'? ?(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 nV
BW fetchSource @()Lcom/groupbyinc/flux/search/fetch/subphase/FetchSourceContext;YZ
?[