
com.groupbyinc.flux.index.engine.ElasticsearchConcurrentMergeScheduler.class Maven / Gradle / Ivy
???? 3? Fcom/groupbyinc/flux/index/engine/ElasticsearchConcurrentMergeScheduler Gcom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler *ElasticsearchConcurrentMergeScheduler.java Ccom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge :com/groupbyinc/flux/common/apache/lucene/index/MergePolicy OneMerge Scom/groupbyinc/flux/common/apache/lucene/index/ConcurrentMergeScheduler$MergeThread MergeThread logger -Lcom/groupbyinc/flux/common/logging/ESLogger;
indexSettings .Lcom/groupbyinc/flux/common/settings/Settings; shardId )Lcom/groupbyinc/flux/index/shard/ShardId; totalMerges /Lcom/groupbyinc/flux/common/metrics/MeanMetric; totalMergesNumDocs 2Lcom/groupbyinc/flux/common/metrics/CounterMetric; totalMergesSizeInBytes
currentMerges currentMergesNumDocs currentMergesSizeInBytes totalMergeStoppedTime totalMergeThrottledTime
onGoingMerges Ljava/util/Set; ?Ljava/util/Set; readOnlyOnGoingMerges config 6Lcom/groupbyinc/flux/index/shard/MergeSchedulerConfig; ?(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/MergeSchedulerConfig;)V ()V $ &
' -com/groupbyinc/flux/common/metrics/MeanMetric )
* ' , 0com/groupbyinc/flux/common/metrics/CounterMetric .
/ ' 1 3 5 7 9 ; = @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections ? newConcurrentSet ()Ljava/util/Set; A B
@ C E java/util/Collections G unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; I J
H K ! M " # O Q S java/lang/Object U getClass ()Ljava/lang/Class; W X
V Y java/lang/String [ *com/groupbyinc/flux/common/logging/Loggers ] getLogger ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/logging/ESLogger; _ `
^ a c
refreshConfig e &
f this HLcom/groupbyinc/flux/index/engine/ElasticsearchConcurrentMergeScheduler; doMerge ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriter;Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)V java/io/IOException l totalNumDocs ()I n o
p totalBytesSize ()J r s
t java/lang/System v nanoTime x s
w y inc { &
/ | (J)V { ~
/ ,com/groupbyinc/flux/index/merge/OnGoingMerge ? H(Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)V $ ?
? ?
java/util/Set ? add (Ljava/lang/Object;)Z ? ? ? ? +com/groupbyinc/flux/common/logging/ESLogger ? isTraceEnabled ()Z ? ? ? ? ]merge [{}] starting..., merging [{}] segments, [{}] docs, [{}] size, into [{}] estimated_size ? =com/groupbyinc/flux/common/apache/lucene/index/OneMergeHelper ? getSegmentName Y(Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)Ljava/lang/String; ? ?
? ? segments Ljava/util/List; ? ? ? java/util/List ? size ? o ? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? -com/groupbyinc/flux/common/unit/ByteSizeValue ? $ ~
? ? estimatedMergeBytes J ? ? ? trace ((Ljava/lang/String;[Ljava/lang/Object;)V ? ? ? ? :com/groupbyinc/flux/common/apache/lucene/index/IndexWriter ? beforeMerge 1(Lcom/groupbyinc/flux/index/merge/OnGoingMerge;)V ? ?
? j k
? )com/groupbyinc/flux/common/unit/TimeValue ?
nsecToMSec (J)J ? ?
? ? remove ? ? ? ?
afterMerge ? ?
? dec ? &
/ ? ? ~
/ ?
* rateLimiter ALcom/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter; ? ? ? ?com/groupbyinc/flux/common/apache/lucene/index/MergeRateLimiter ? getTotalStoppedNS ? s
? ? getTotalPausedNS ? s
? ? java/util/Locale ? ROOT Ljava/util/Locale; ? ? ? ? ?merge segment [%s] done: took [%s], [%,.1f MB], [%,d docs], [%s stopped], [%s throttled], [%,.1f MB written], [%,.1f MB/sec throttle] ? timeValueMillis .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ?D? java/lang/Float ? (F)Ljava/lang/Float; ? ?
? ? getTotalBytesWritten ? s
? ? getMBPerSec ()D ? ?
? ? java/lang/Double ? (D)Ljava/lang/Double; ? ?
? ? format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; ? ?
\ ? N debug ? ? ? java/lang/Throwable tookMS stoppedMS throttledMS message Ljava/lang/String; writer