
com.groupbyinc.flux.indices.flush.SyncedFlushService.class Maven / Gradle / Ivy
???? 3? 4com/groupbyinc/flux/indices/flush/SyncedFlushService 6com/groupbyinc/flux/common/component/AbstractComponent 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 / 'com/groupbyinc/flux/index/engine/Engine 1 CommitId 9com/groupbyinc/flux/index/engine/Engine$SyncedFlushResult 4 SyncedFlushResult /com/groupbyinc/flux/threadpool/ThreadPool$Names 7 )com/groupbyinc/flux/threadpool/ThreadPool 9 Names 5com/groupbyinc/flux/indices/IndicesLifecycle$Listener < ,com/groupbyinc/flux/indices/IndicesLifecycle > Listener 8com/groupbyinc/flux/cluster/metadata/IndexMetaData$State A 2com/groupbyinc/flux/cluster/metadata/IndexMetaData C State PRE_SYNCED_FLUSH_ACTION_NAME Ljava/lang/String; !internal:indices/flush/synced/pre H SYNCED_FLUSH_ACTION_NAME "internal:indices/flush/synced/sync K IN_FLIGHT_OPS_ACTION_NAME 'internal:indices/flush/synced/in_flight N indicesService ,Lcom/groupbyinc/flux/indices/IndicesService; clusterService ,Lcom/groupbyinc/flux/cluster/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/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 Z ]
^ P Q ` R S b T U d V W f flush h q(Lcom/groupbyinc/flux/indices/flush/SyncedFlushService;Lcom/groupbyinc/flux/indices/flush/SyncedFlushService$1;)V Z j
k .com/groupbyinc/flux/transport/TransportService m registerRequestHandler o(Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;Lcom/groupbyinc/flux/transport/TransportRequestHandler;)V o p
n q
k same t
k *com/groupbyinc/flux/indices/IndicesService w indicesLifecycle 0()Lcom/groupbyinc/flux/indices/IndicesLifecycle; y z
x { 9(Lcom/groupbyinc/flux/indices/flush/SyncedFlushService;)V Z }
. ~ addListener :(Lcom/groupbyinc/flux/indices/IndicesLifecycle$Listener;)V ? ? ? ? this 6Lcom/groupbyinc/flux/indices/flush/SyncedFlushService; settings .Lcom/groupbyinc/flux/common/settings/Settings; attemptSyncedFlush t([Ljava/lang/String;Lcom/groupbyinc/flux/action/support/IndicesOptions;Lcom/groupbyinc/flux/action/ActionListener;)V *com/groupbyinc/flux/cluster/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;)[Ljava/lang/String; ? ?
? ? @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 ?
java/util/Map ? metaData 1()Lcom/groupbyinc/flux/cluster/metadata/MetaData; ? ?
? ? -com/groupbyinc/flux/cluster/metadata/MetaData ? index H(Ljava/lang/String;)Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; ? ?
? ? getTotalNumberOfShards ()I ? ?
D ? getNumberOfShards ? ?
D ? java/util/ArrayList ? ()V Z ?
? ? 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 Z ?
? ?
onResponse (Ljava/lang/Object;)V ? ? ? ? 4com/groupbyinc/flux/common/util/concurrent/CountDown ? (I)V Z ?
? ? java/lang/String ? 'com/groupbyinc/flux/index/shard/ShardId ? (Ljava/lang/String;I)V Z ?
? ? ?(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;I)V Z ?
, ? W(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/action/ActionListener;)V ? ?
?
indexMetaData 4Lcom/groupbyinc/flux/cluster/metadata/IndexMetaData; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; shard I indexNumberOfShards 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; totalNumberOfShards numberOfShards finalTotalNumberOfShards countDown 6Lcom/groupbyinc/flux/common/util/concurrent/CountDown; java/lang/Throwable ? getShardRoutingTable ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/cluster/ClusterState;)Lcom/groupbyinc/flux/cluster/routing/IndexShardRoutingTable; ? ?
? :com/groupbyinc/flux/cluster/routing/IndexShardRoutingTable ? activeShards ()Ljava/util/List; ?
? getSize ?
? java/util/List size ? 9com/groupbyinc/flux/indices/flush/ShardsSyncedFlushResult no active shards
?(Lcom/groupbyinc/flux/index/shard/ShardId;ILjava/lang/String;)V Z
(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 Z
* sendPreSyncRequests ?(Ljava/util/List;Lcom/groupbyinc/flux/cluster/ClusterState;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/action/ActionListener;)V
onFailure (Ljava/lang/Throwable;)V ? shardRoutingTable