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 [com/groupbyinc/flux/action/support/replication/ReplicationOperation$RetryOnPrimaryException 9 Ccom/groupbyinc/flux/action/support/replication/ReplicationOperation ; RetryOnPrimaryException Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$ReplicaResult > Icom/groupbyinc/flux/action/support/replication/TransportReplicationAction @
ReplicaResult Wcom/groupbyinc/flux/action/support/replication/TransportReplicationAction$PrimaryResult C
PrimaryResult /com/groupbyinc/flux/threadpool/ThreadPool$Names F )com/groupbyinc/flux/threadpool/ThreadPool H Names Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo K Bcom/groupbyinc/flux/action/support/replication/ReplicationResponse M ShardInfo acom/groupbyinc/flux/action/support/replication/TransportReplicationAction$RetryOnReplicaException P RetryOnReplicaException 2com/groupbyinc/flux/action/DocWriteResponse$Result S +com/groupbyinc/flux/action/DocWriteResponse U 2com/groupbyinc/flux/index/engine/Engine$NoOpResult W
NoOpResult %java/lang/invoke/MethodHandles$Lookup Z java/lang/invoke/MethodHandles \ Lookup ACTION_NAME Ljava/lang/String; indices:data/write/bulk[s] a logger 8Lcom/groupbyinc/flux/common/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 n 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; p q
o r s ()Ljava/lang/Object; u 0com/groupbyinc/flux/action/bulk/BulkShardRequest w ()V k y
x z { 4()Lcom/groupbyinc/flux/action/bulk/BulkShardRequest; } get ()Ljava/util/function/Supplier; ? ? bulk ??(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 k ?
? e f ? g h ? 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 ?
? z 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/lang/Object ? getClass ()Ljava/lang/Class; ? ?
? ? ()J ? absoluteTimeInMillis ? ?
I ? ? getAsLong N(Lcom/groupbyinc/flux/threadpool/ThreadPool;)Ljava/util/function/LongSupplier; ? ? ? =(Lcom/groupbyinc/flux/action/bulk/TransportShardBulkAction;)V k ?
? 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; ? ?
x ? /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; ? ?
x ? _(Lcom/groupbyinc/flux/index/shard/ShardId;[Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;)V k ?
? ? c d ?=(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;Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;)V k
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;
hasFailure ?
4com/groupbyinc/flux/action/bulk/BulkItemResultHolder ?(Lcom/groupbyinc/flux/action/DocWriteResponse;Lcom/groupbyinc/flux/index/engine/Engine$Result;Lcom/groupbyinc/flux/action/bulk/BulkItemRequest;)V k
.com/groupbyinc/flux/action/index/IndexResponse
? ? -com/groupbyinc/flux/action/index/IndexRequest" type ()Ljava/lang/String;$%
#& id(%
#) getSeqNo+ ?
, getPrimaryTerm. ?
?/
getVersion1 ?
2 isCreated4 ?
5 T(Lcom/groupbyinc/flux/index/shard/ShardId;Ljava/lang/String;Ljava/lang/String;JJJZ)V k7
8 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;CD
E
0com/groupbyinc/flux/action/delete/DeleteResponseH /com/groupbyinc/flux/action/delete/DeleteRequestJ
K&
K)
,
2 isFoundP ?
Q
I8 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;[\ ]
getTranslogLocation 8()Lcom/groupbyinc/flux/index/translog/Translog$Location;`a
b locationToSync ?(Lcom/groupbyinc/flux/index/translog/Translog$Location;Lcom/groupbyinc/flux/index/translog/Translog$Location;)Lcom/groupbyinc/flux/index/translog/Translog$Location;de
f 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;m n replicaRequestp> q i j s getResult 6()Lcom/groupbyinc/flux/action/DocWriteResponse$Result;uv
Vw NOOP 4Lcom/groupbyinc/flux/action/DocWriteResponse$Result;yz T{ java/lang/AssertionError} +only noop updates can have a null operation (Ljava/lang/Object;)V k?
~? ()I(?
?? d(ILcom/groupbyinc/flux/action/DocWriteRequest$OpType;Lcom/groupbyinc/flux/action/DocWriteResponse;)V k?
7? getResponse /()Lcom/groupbyinc/flux/action/DocWriteResponse;??
7?
L z setShardInfo Q(Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;)V??
V? .()Lcom/groupbyinc/flux/action/DocWriteRequest; ??
??
getFailure ()Ljava/lang/Exception;??
? isConflictException (Ljava/lang/Exception;)Z??
? lambda$createPrimaryResponse$0 r(Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/action/DocWriteRequest;)Ljava/lang/Object;??
?? ?(Lcom/groupbyinc/flux/action/bulk/BulkShardRequest;Lcom/groupbyinc/flux/action/DocWriteRequest;)Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier; ? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger? trace W(Lcom/groupbyinc/flux/common/apache/logging/log4j/util/Supplier;Ljava/lang/Throwable;)V???? lambda$createPrimaryResponse$1??
?? ? debug???? opType 5()Lcom/groupbyinc/flux/action/DocWriteRequest$OpType;?? %? index?%
x? %& %)
, O(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Exception;J)V k?
5? q(ILcom/groupbyinc/flux/action/DocWriteRequest$OpType;Lcom/groupbyinc/flux/action/bulk/BulkItemResponse$Failure;)V k?
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 [I?? ? ordinal??
#?
? /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;??
?AB
? java/lang/IllegalStateException? java/lang/StringBuilder?
? z unexpected opType [? append -(Ljava/lang/String;)Ljava/lang/StringBuilder;??
?? -(Ljava/lang/Object;)Ljava/lang/StringBuilder;??
?? ] found? toString?%
?? (Ljava/lang/String;)V k?
??kl
? setPrimaryResponse 5(Lcom/groupbyinc/flux/action/bulk/BulkItemResponse;)V??
??YZ
? 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; / action 3()Lcom/groupbyinc/flux/common/io/stream/Streamable;
(
2 0com/groupbyinc/flux/action/update/UpdateResponse" getShardInfo P()Lcom/groupbyinc/flux/action/support/replication/ReplicationResponse$ShardInfo;$%
&
getShardId( ?
) getType+%
, getId.%
/
,
/
2
w ?(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 k5
#6 fetchSource @()Lcom/groupbyinc/flux/search/fetch/subphase/FetchSourceContext;89
?: