com.groupbyinc.flux.indices.flush.SyncedFlushService.class Maven / Gradle / Ivy
???? 4 4com/groupbyinc/flux/indices/flush/SyncedFlushService 6com/groupbyinc/flux/common/component/AbstractComponent 2com/groupbyinc/flux/index/shard/IndexEventListener SyncedFlushService.java 6com/groupbyinc/flux/indices/flush/SyncedFlushService$7 Tcom/groupbyinc/flux/indices/flush/SyncedFlushService$InFlightOpCountTransportHandler
InFlightOpCountTransportHandler Pcom/groupbyinc/flux/indices/flush/SyncedFlushService$SyncedFlushTransportHandler
SyncedFlushTransportHandler Scom/groupbyinc/flux/indices/flush/SyncedFlushService$PreSyncedFlushTransportHandler PreSyncedFlushTransportHandler Hcom/groupbyinc/flux/indices/flush/SyncedFlushService$InFlightOpsResponse InFlightOpsResponse Gcom/groupbyinc/flux/indices/flush/SyncedFlushService$InFlightOpsRequest InFlightOpsRequest Mcom/groupbyinc/flux/indices/flush/SyncedFlushService$ShardSyncedFlushResponse ShardSyncedFlushResponse Lcom/groupbyinc/flux/indices/flush/SyncedFlushService$ShardSyncedFlushRequest ShardSyncedFlushRequest Kcom/groupbyinc/flux/indices/flush/SyncedFlushService$PreSyncedFlushResponse PreSyncedFlushResponse Ocom/groupbyinc/flux/indices/flush/SyncedFlushService$PreShardSyncedFlushRequest " PreShardSyncedFlushRequest 6com/groupbyinc/flux/indices/flush/SyncedFlushService$6 % 6com/groupbyinc/flux/indices/flush/SyncedFlushService$5 ' 6com/groupbyinc/flux/indices/flush/SyncedFlushService$4 ) 6com/groupbyinc/flux/indices/flush/SyncedFlushService$3 + 6com/groupbyinc/flux/indices/flush/SyncedFlushService$2 - 6com/groupbyinc/flux/indices/flush/SyncedFlushService$1 / 0com/groupbyinc/flux/index/engine/Engine$CommitId 1 'com/groupbyinc/flux/index/engine/Engine 3 CommitId 9com/groupbyinc/flux/index/engine/Engine$SyncedFlushResult 6 SyncedFlushResult /com/groupbyinc/flux/threadpool/ThreadPool$Names 9 )com/groupbyinc/flux/threadpool/ThreadPool ; Names 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State > 2com/groupbyinc/flux/cluster/metadata/IndexMetaData @ State %java/lang/invoke/MethodHandles$Lookup C java/lang/invoke/MethodHandles E Lookup PRE_SYNCED_FLUSH_ACTION_NAME Ljava/lang/String; !internal:indices/flush/synced/pre J SYNCED_FLUSH_ACTION_NAME "internal:indices/flush/synced/sync M IN_FLIGHT_OPS_ACTION_NAME 'internal:indices/flush/synced/in_flight P indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; clusterService 4Lcom/groupbyinc/flux/cluster/service/ClusterService; transportService 0Lcom/groupbyinc/flux/transport/TransportService; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; $assertionsDisabled Z (Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/cluster/service/ClusterService;Lcom/groupbyinc/flux/transport/TransportService;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;)V *Lcom/groupbyinc/flux/common/inject/Inject; 1(Lcom/groupbyinc/flux/common/settings/Settings;)V \ _
` R S b T U d V W f X Y h "java/lang/invoke/LambdaMetafactory j 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; l m
k n o ()Ljava/lang/Object; q ()V \ s
# t u S()Lcom/groupbyinc/flux/indices/flush/SyncedFlushService$PreShardSyncedFlushRequest; w get ()Ljava/util/function/Supplier; y z { flush } q(Lcom/groupbyinc/flux/indices/flush/SyncedFlushService;Lcom/groupbyinc/flux/indices/flush/SyncedFlushService$1;)V \
? .com/groupbyinc/flux/transport/TransportService ? registerRequestHandler {(Ljava/lang/String;Ljava/util/function/Supplier;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V ? ?
? ?
t ? P()Lcom/groupbyinc/flux/indices/flush/SyncedFlushService$ShardSyncedFlushRequest; ? {
?
t ? K()Lcom/groupbyinc/flux/indices/flush/SyncedFlushService$InFlightOpsRequest; ? { same ?
? this 6Lcom/groupbyinc/flux/indices/flush/SyncedFlushService; settings .Lcom/groupbyinc/flux/common/settings/Settings; onShardInactive /(Lcom/groupbyinc/flux/index/shard/IndexShard;)V *com/groupbyinc/flux/index/shard/IndexShard ? routingEntry 4()Lcom/groupbyinc/flux/cluster/routing/ShardRouting; ? ?
? ? 0com/groupbyinc/flux/cluster/routing/ShardRouting ? primary ()Z ? ?
? ? shardId +()Lcom/groupbyinc/flux/index/shard/ShardId; ? ?
? ? e(Lcom/groupbyinc/flux/indices/flush/SyncedFlushService;Lcom/groupbyinc/flux/index/shard/IndexShard;)V \ ?
0 ? attemptSyncedFlush W(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
?
indexShard ,Lcom/groupbyinc/flux/index/shard/IndexShard; t([Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;Lcom/groupbyinc/flux/action/ActionListener;)V 2com/groupbyinc/flux/cluster/service/ClusterService ? state ,()Lcom/groupbyinc/flux/cluster/ClusterState; ? ?
? ? @com/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver ? concreteIndices ?(Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/support/IndicesOptions;[Ljava/lang/String;)[Lcom/groupbyinc/flux/index/Index; ? ?
? ? @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections ? newConcurrentMap &()Ljava/util/concurrent/ConcurrentMap; ? ?
? ? [Ljava/lang/String; ? 1com/groupbyinc/flux/action/support/IndicesOptions ? )com/groupbyinc/flux/action/ActionListener ? (com/groupbyinc/flux/cluster/ClusterState ? "[Lcom/groupbyinc/flux/index/Index; ?
java/util/Map ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? ? -com/groupbyinc/flux/cluster/metadata/MetaData ? getIndexSafe W(Lcom/groupbyinc/flux/index/Index;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? getNumberOfShards ()I ? ?
A ? com/groupbyinc/flux/index/Index ? getName ()Ljava/lang/String; ? ?
? ? java/util/ArrayList ?
? t java/util/Collections ? synchronizedList "(Ljava/util/List;)Ljava/util/List; ? ?
? ? put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? Bcom/groupbyinc/flux/action/admin/indices/flush/SyncedFlushResponse ? (Ljava/util/Map;)V \ ?
? ?
onResponse (Ljava/lang/Object;)V ? ? ? ? 4com/groupbyinc/flux/common/util/concurrent/CountDown ? (I)V \
? java/lang/String 'com/groupbyinc/flux/index/shard/ShardId getIndex #()Lcom/groupbyinc/flux/index/Index;
A %(Lcom/groupbyinc/flux/index/Index;I)V \
(Lcom/groupbyinc/flux/indices/flush/SyncedFlushService;Ljava/util/Map;Ljava/lang/String;Lcom/groupbyinc/flux/common/util/concurrent/CountDown;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData;)V \
. innerAttemptSyncedFlush ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/action/ActionListener;)V
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; index !Lcom/groupbyinc/flux/index/Index; )Lcom/groupbyinc/flux/index/shard/ShardId; shard I indexNumberOfShards
concreteIndex aliasesOrIndices indicesOptions 3Lcom/groupbyinc/flux/action/support/IndicesOptions; listener qLcom/groupbyinc/flux/action/ActionListener; +Lcom/groupbyinc/flux/action/ActionListener; *Lcom/groupbyinc/flux/cluster/ClusterState; results pLjava/util/Map;>; Ljava/util/Map; numberOfShards countDown 6Lcom/groupbyinc/flux/common/util/concurrent/CountDown; actionListener hLcom/groupbyinc/flux/action/ActionListener; java/lang/Exception- getShardRoutingTable ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;/0
1 :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable3 activeShards ()Ljava/util/List;56
47 getSize9 ?
4: java/util/List< size> ?=? 9com/groupbyinc/flux/indices/flush/ShardsSyncedFlushResultA no active shardsC ?(Lcom/groupbyinc/flux/index/shard/ShardId;ILjava/lang/String;)V \E
BF(Lcom/groupbyinc/flux/indices/flush/SyncedFlushService;Lcom/groupbyinc/flux/action/ActionListener;Lcom/groupbyinc/flux/index/shard/ShardId;ILjava/util/List;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable;)V \H
,I sendPreSyncRequests ?(Ljava/util/List;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/action/ActionListener;)VKL
M onFailure (Ljava/lang/Exception;)VOP ?Q shardRoutingTable