com.groupbyinc.flux.indices.IndicesService.class Maven / Gradle / Ivy
???? 4? *com/groupbyinc/flux/indices/IndicesService "Lcom/groupbyinc/flux/common/component/AbstractLifecycleComponent;Lcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices;Lcom/groupbyinc/flux/index/IndexService$ShardStoreDeleter; ?com/groupbyinc/flux/common/component/AbstractLifecycleComponent Ocom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices 8com/groupbyinc/flux/index/IndexService$ShardStoreDeleter IndicesService.java ,com/groupbyinc/flux/indices/IndicesService$4 Hcom/groupbyinc/flux/indices/IndicesService$IndexDeletionAllowedPredicate
IndexDeletionAllowedPredicate @com/groupbyinc/flux/indices/IndicesService$IndexShardCacheEntity IndexShardCacheEntity 7com/groupbyinc/flux/indices/IndicesService$CacheCleaner CacheCleaner 8com/groupbyinc/flux/indices/IndicesService$PendingDelete
PendingDelete Ccom/groupbyinc/flux/indices/IndicesService$ShardDeletionCheckResult ShardDeletionCheckResult 9com/groupbyinc/flux/indices/IndicesService$OldShardsStats OldShardsStats ,com/groupbyinc/flux/indices/IndicesService$3 ,com/groupbyinc/flux/indices/IndicesService$2 ! ,com/groupbyinc/flux/indices/IndicesService$1 # Dcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags$Flag % ?com/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags ' Flag Ocom/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService$RecoveryListener * >com/groupbyinc/flux/indices/recovery/PeerRecoveryTargetService , RecoveryListener 7com/groupbyinc/flux/index/shard/IndexShard$ShardFailure / *com/groupbyinc/flux/index/shard/IndexShard 1 ShardFailure >com/groupbyinc/flux/indices/cluster/IndicesClusterStateService 4 AllocatedIndices bcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndices$IndexRemovalReason 7 IndexRemovalReason Dcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$Shard : Shard Mcom/groupbyinc/flux/indices/cluster/IndicesClusterStateService$AllocatedIndex = AllocatedIndex &com/groupbyinc/flux/index/IndexService @ ShardStoreDeleter /com/groupbyinc/flux/threadpool/ThreadPool$Names C )com/groupbyinc/flux/threadpool/ThreadPool E Names 4com/groupbyinc/flux/common/settings/Setting$Property H +com/groupbyinc/flux/common/settings/Setting J Property @com/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener M 7com/groupbyinc/flux/index/fielddata/IndexFieldDataCache O Listener :com/groupbyinc/flux/index/mapper/MapperService$MergeReason R .com/groupbyinc/flux/index/mapper/MapperService T MergeReason ;com/groupbyinc/flux/indices/IndicesRequestCache$CacheEntity W /com/groupbyinc/flux/indices/IndicesRequestCache Y CacheEntity 7com/groupbyinc/flux/cluster/routing/RecoverySource$Type \ 2com/groupbyinc/flux/cluster/routing/RecoverySource ^ Type %java/lang/invoke/MethodHandles$Lookup a java/lang/invoke/MethodHandles c Lookup INDICES_SHARDS_CLOSED_TIMEOUT Ljava/lang/String; indices.shards_closed_timeout h $INDICES_CACHE_CLEAN_INTERVAL_SETTING -Lcom/groupbyinc/flux/common/settings/Setting; ZLcom/groupbyinc/flux/common/settings/Setting; pluginsService ,Lcom/groupbyinc/flux/plugins/PluginsService; nodeEnv )Lcom/groupbyinc/flux/env/NodeEnvironment; xContentRegistry ;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry; shardsClosedTimeout +Lcom/groupbyinc/flux/common/unit/TimeValue; analysisRegistry 5Lcom/groupbyinc/flux/index/analysis/AnalysisRegistry; indexNameExpressionResolver BLcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver; indexScopeSetting 9Lcom/groupbyinc/flux/common/settings/IndexScopedSettings; indicesFieldDataCache CLcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache; cacheCleaner 9Lcom/groupbyinc/flux/indices/IndicesService$CacheCleaner;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; circuitBreakerService ;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService; bigArrays +Lcom/groupbyinc/flux/common/util/BigArrays;
scriptService *Lcom/groupbyinc/flux/script/ScriptService; client #Lcom/groupbyinc/flux/client/Client; indices Ljava/util/Map; KLjava/util/Map; pendingDeletes ~Ljava/util/Map;>; numUncompletedDeletes +Ljava/util/concurrent/atomic/AtomicInteger; oldShardsStats ;Lcom/groupbyinc/flux/indices/IndicesService$OldShardsStats; mapperRegistry 3Lcom/groupbyinc/flux/indices/mapper/MapperRegistry; namedWriteableRegistry =Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry; indexingMemoryController 6Lcom/groupbyinc/flux/indices/IndexingMemoryController;
cleanInterval indicesRequestCache 1Lcom/groupbyinc/flux/indices/IndicesRequestCache; indicesQueryCache /Lcom/groupbyinc/flux/indices/IndicesQueryCache; metaStateService .Lcom/groupbyinc/flux/gateway/MetaStateService; DEFAULT_INDEX_DELETION_PREDICATE JLcom/groupbyinc/flux/indices/IndicesService$IndexDeletionAllowedPredicate; ALWAYS_TRUE $assertionsDisabled Z doStart ()V ? ? ? t ? same ? } ~ ? schedule y(Lcom/groupbyinc/flux/common/unit/TimeValue;Ljava/lang/String;Ljava/lang/Runnable;)Ljava/util/concurrent/ScheduledFuture; ? ?
F ? this ,Lcom/groupbyinc/flux/indices/IndicesService; ?(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/plugins/PluginsService;Lcom/groupbyinc/flux/env/NodeEnvironment;Lcom/groupbyinc/flux/common/xcontent/NamedXContentRegistry;Lcom/groupbyinc/flux/index/analysis/AnalysisRegistry;Lcom/groupbyinc/flux/cluster/metadata/IndexNameExpressionResolver;Lcom/groupbyinc/flux/indices/mapper/MapperRegistry;Lcom/groupbyinc/flux/common/io/stream/NamedWriteableRegistry;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/settings/IndexScopedSettings;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;Lcom/groupbyinc/flux/common/util/BigArrays;Lcom/groupbyinc/flux/script/ScriptService;Lcom/groupbyinc/flux/client/Client;Lcom/groupbyinc/flux/gateway/MetaStateService;)V 1(Lcom/groupbyinc/flux/common/settings/Settings;)V ? ?
? java/util/Collections ? emptyMap ()Ljava/util/Map; ? ?
? ? ? ? ? java/util/HashMap ? ? ?
? ? ? ? ? )java/util/concurrent/atomic/AtomicInteger ?
? ? ? ? ?
? ? ? ? "java/lang/invoke/LambdaMetafactory ? 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; ? ?
? ? ? M(Lcom/groupbyinc/flux/index/Index;Lcom/groupbyinc/flux/index/IndexSettings;)Z ?
lambda$new$16 ? ?
? ? apply x(Lcom/groupbyinc/flux/indices/IndicesService;)Lcom/groupbyinc/flux/indices/IndicesService$IndexDeletionAllowedPredicate; ? ? ? ? ? ?
lambda$new$17 ? ?
? ? L()Lcom/groupbyinc/flux/indices/IndicesService$IndexDeletionAllowedPredicate; ? ? ? ? ? ? m n ? o p ? q r ? )com/groupbyinc/flux/common/unit/TimeValue ? java/util/concurrent/TimeUnit ? DAYS Ljava/util/concurrent/TimeUnit; ? ? ? ? #(JLjava/util/concurrent/TimeUnit;)V ? ?
? ? ,com/groupbyinc/flux/common/settings/Settings ? getAsTime j(Ljava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? s t u v w x
Z ? ? ? -com/groupbyinc/flux/indices/IndicesQueryCache
? ? ? ? ? ? ? 4com/groupbyinc/flux/indices/IndexingMemoryController ()Ljava/util/Iterator; lambda$new$0
iterator B(Lcom/groupbyinc/flux/indices/IndicesService;)Ljava/lang/Iterable; p(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/threadpool/ThreadPool;Ljava/lang/Iterable;)V ?
! ? ? # y z % ? ? ' ? ? ) ? ? + ? ? - Acom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache/ j(Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/indices/breaker/CircuitBreakerService;)V ?1
$2 s(Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/fielddata/IndexFieldDataCache$Listener;)V ?4
05 { | 7 j k 9 get B(Lcom/groupbyinc/flux/common/settings/Settings;)Ljava/lang/Object;;<
K= logger !Lorg/apache/logging/log4j/Logger;?@ A ?(Lcom/groupbyinc/flux/indices/fielddata/cache/IndicesFieldDataCache;Lcom/groupbyinc/flux/indices/IndicesRequestCache;Lorg/apache/logging/log4j/Logger;Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/unit/TimeValue;)V ?C
D ? ? F settings .Lcom/groupbyinc/flux/common/settings/Settings; indexScopedSettings doStop java/lang/InterruptedExceptionL indices_shutdownN 6com/groupbyinc/flux/common/util/concurrent/EsExecutorsP daemonThreadFactory 8(Ljava/lang/String;)Ljava/util/concurrent/ThreadFactory;RS
QT java/util/concurrent/ExecutorsV newFixedThreadPool M(ILjava/util/concurrent/ThreadFactory;)Ljava/util/concurrent/ExecutorService;XY
WZ
java/util/Map\ values ()Ljava/util/Collection;^_]` java/util/Collectionb stream ()Ljava/util/stream/Stream;decf &(Ljava/lang/Object;)Ljava/lang/Object;h lambda$doStop$1 K(Lcom/groupbyinc/flux/index/IndexService;)Lcom/groupbyinc/flux/index/Index;jk
lmk ()Ljava/util/function/Function; ?p q java/util/stream/Streams map 8(Ljava/util/function/Function;)Ljava/util/stream/Stream;uvtw java/util/stream/Collectorsy toSet ()Ljava/util/stream/Collector;{|
z} collect 0(Ljava/util/stream/Collector;)Ljava/lang/Object;?t?
java/util/Set? #java/util/concurrent/CountDownLatch? size ()I???? (I)V ??
???? $java/util/concurrent/ExecutorService? java/util/Iterator? hasNext ()Z???? next ()Ljava/lang/Object;???? com/groupbyinc/flux/index/Index? ? lambda$doStop$2 I(Lcom/groupbyinc/flux/index/Index;Ljava/util/concurrent/CountDownLatch;)V??
?? run ?(Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/index/Index;Ljava/util/concurrent/CountDownLatch;)Ljava/lang/Runnable;?? ? execute (Ljava/lang/Runnable;)V???? seconds ()J??
?? SECONDS? ? ?? await #(JLjava/util/concurrent/TimeUnit;)Z??
?? >Not all shards are closed yet, waited {}sec - stopping service? java/lang/Long? valueOf (J)Ljava/lang/Long;??
?? org/apache/logging/log4j/Logger? warn '(Ljava/lang/String;Ljava/lang/Object;)V???? shutdown? ??? java/lang/Throwable? index !Lcom/groupbyinc/flux/index/Index; indicesStopExecutor &Ljava/util/concurrent/ExecutorService; 2Ljava/util/Set; Ljava/util/Set; latch %Ljava/util/concurrent/CountDownLatch; doClose java/io/Closeable? 5com/groupbyinc/flux/common/apache/lucene/util/IOUtils? closeWhileHandlingException ([Ljava/io/Closeable;)V??
?? stats 1(Z)Lcom/groupbyinc/flux/indices/NodeIndicesStats; J([Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags$Flag;)V ??
(? all C()Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags;??
(? r(ZLcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags;)Lcom/groupbyinc/flux/indices/NodeIndicesStats;??
? includePrevious :com/groupbyinc/flux/action/admin/indices/stats/CommonStats? D(Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags;)V ??
?? getFlags I()[Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags$Flag;??
(? G[Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags$Flag;? M$SwitchMap$org$elasticsearch$action$admin$indices$stats$CommonStatsFlags$Flag [I?? ? ordinal??
&? (Lcom/groupbyinc/flux/index/get/GetStats;;? ?? getStats?? ? &com/groupbyinc/flux/index/get/GetStats add +(Lcom/groupbyinc/flux/index/get/GetStats;)V
indexing /Lcom/groupbyinc/flux/index/shard/IndexingStats; ?
indexingStats
-com/groupbyinc/flux/index/shard/IndexingStats
2(Lcom/groupbyinc/flux/index/shard/IndexingStats;)V
search 4Lcom/groupbyinc/flux/index/search/stats/SearchStats; ? searchStats 2com/groupbyinc/flux/index/search/stats/SearchStats 7(Lcom/groupbyinc/flux/index/search/stats/SearchStats;)V
merge ,Lcom/groupbyinc/flux/index/merge/MergeStats; ?
mergeStats" # *com/groupbyinc/flux/index/merge/MergeStats% /(Lcom/groupbyinc/flux/index/merge/MergeStats;)V'
&( refresh 0Lcom/groupbyinc/flux/index/refresh/RefreshStats;*+ ?, refreshStats.+ / .com/groupbyinc/flux/index/refresh/RefreshStats1 3(Lcom/groupbyinc/flux/index/refresh/RefreshStats;)V3
24
recoveryStats 2Lcom/groupbyinc/flux/index/recovery/RecoveryStats;67 ?8 8 0com/groupbyinc/flux/index/recovery/RecoveryStats; 5(Lcom/groupbyinc/flux/index/recovery/RecoveryStats;)V=
<> flush ,Lcom/groupbyinc/flux/index/flush/FlushStats;@A ?B
flushStatsDA E *com/groupbyinc/flux/index/flush/FlushStatsG /(Lcom/groupbyinc/flux/index/flush/FlushStats;)VI
HJ ,com/groupbyinc/flux/indices/NodeIndicesStatsL statsByShard ~(Lcom/groupbyinc/flux/indices/IndicesService;Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags;)Ljava/util/Map;NO
P N(Lcom/groupbyinc/flux/action/admin/indices/stats/CommonStats;Ljava/util/Map;)V ?R
MS flag FLcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags$Flag; setFlags flags ALcom/groupbyinc/flux/action/admin/indices/stats/CommonStatsFlags; oldStats