com.groupbyinc.flux.index.engine.InternalEngine$EngineMergeScheduler.class Maven / Gradle / Ivy
???? 4 ? Dcom/groupbyinc/flux/index/engine/InternalEngine$EngineMergeScheduler Fcom/groupbyinc/flux/index/engine/ElasticsearchConcurrentMergeScheduler InternalEngine.java /com/groupbyinc/flux/index/engine/InternalEngine EngineMergeScheduler Fcom/groupbyinc/flux/index/engine/InternalEngine$EngineMergeScheduler$2 Fcom/groupbyinc/flux/index/engine/InternalEngine$EngineMergeScheduler$1 /com/groupbyinc/flux/threadpool/ThreadPool$Names
)com/groupbyinc/flux/threadpool/ThreadPool Names numMergesInFlight +Ljava/util/concurrent/atomic/AtomicInteger; isThrottling +Ljava/util/concurrent/atomic/AtomicBoolean; this$0 1Lcom/groupbyinc/flux/index/engine/InternalEngine; ?(Lcom/groupbyinc/flux/index/engine/InternalEngine;Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)V U(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)V
)java/util/concurrent/atomic/AtomicInteger (I)V !
" $ )java/util/concurrent/atomic/AtomicBoolean & ()V (
' ) + this FLcom/groupbyinc/flux/index/engine/InternalEngine$EngineMergeScheduler; shardId )Lcom/groupbyinc/flux/index/shard/ShardId;
indexSettings )Lcom/groupbyinc/flux/index/IndexSettings; beforeMerge 1(Lcom/groupbyinc/flux/index/merge/OnGoingMerge;)V
access$000 {(Lcom/groupbyinc/flux/index/engine/InternalEngine;)Lcom/groupbyinc/flux/index/engine/ElasticsearchConcurrentMergeScheduler; 5 6
7 getMaxMergeCount ()I 9 :
; incrementAndGet = :
> getAndSet (Z)Z @ A
' B logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; D E F >now throttling indexing: numMergesInFlight={}, maxNumMerges={} H java/lang/Integer J valueOf (I)Ljava/lang/Integer; L M
K N 6com/groupbyinc/flux/common/apache/logging/log4j/Logger P info 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V R S Q T activateThrottling V (
W merge .Lcom/groupbyinc/flux/index/merge/OnGoingMerge; maxNumMerges I
afterMerge decrementAndGet ^ :
_ ?stop throttling indexing: numMergesInFlight={}, maxNumMerges={} a deactivateThrottling c (
d
access$100 o(Lcom/groupbyinc/flux/index/engine/InternalEngine;)Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriter; f g
h :com/groupbyinc/flux/common/apache/lucene/index/IndexWriter j hasPendingMerges ()Z l m
k n java/lang/System p nanoTime ()J r s
q t lastWriteNanos J v w x engineConfig /Lcom/groupbyinc/flux/index/engine/EngineConfig; z { | -com/groupbyinc/flux/index/engine/EngineConfig ~ getFlushMergesAfter -()Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? )com/groupbyinc/flux/common/unit/TimeValue ? nanos ? s
? ?
getThreadPool -()Lcom/groupbyinc/flux/threadpool/ThreadPool; ? ?
? flush ? executor :(Ljava/lang/String;)Ljava/util/concurrent/ExecutorService; ? ?
? I(Lcom/groupbyinc/flux/index/engine/InternalEngine$EngineMergeScheduler;)V ?
? $java/util/concurrent/ExecutorService ? execute (Ljava/lang/Runnable;)V ? ? ? ? handleMergeException R(Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;Ljava/lang/Throwable;)V failed to merge ? error *(Ljava/lang/String;Ljava/lang/Throwable;)V ? ? Q ? generic (()Ljava/util/concurrent/ExecutorService; ? ?
? ?(Lcom/groupbyinc/flux/index/engine/InternalEngine$EngineMergeScheduler;Ljava/lang/Throwable;Lcom/groupbyinc/flux/common/apache/lucene/store/Directory;)V ?
? dir :Lcom/groupbyinc/flux/common/apache/lucene/store/Directory; exc Ljava/lang/Throwable; Code LocalVariableTable LineNumberTable
StackMapTable
SourceFile InnerClasses 0 ? q #*+? *,-? *? Y? #? %*? 'Y? *? ,? ? # - . # / 0 # 1 2 ? . / + , "0 ! 3 4 ? ? <*? ? 8? <=*? %? ?? (*? ,? C? *? GI*? %? O? U *? ? X? ? <