com.groupbyinc.flux.index.engine.ElasticsearchConcurrentMergeScheduler.class Maven / Gradle / Ivy
???? 4? 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 Kcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMergeProgress OneMergeProgress Wcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason PauseReason logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
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 0Lcom/groupbyinc/flux/index/MergeSchedulerConfig; U(Lcom/groupbyinc/flux/index/shard/ShardId;Lcom/groupbyinc/flux/index/IndexSettings;)V ()V * ,
- -com/groupbyinc/flux/common/metrics/MeanMetric /
0 - 2 0com/groupbyinc/flux/common/metrics/CounterMetric 4
5 - 7 9 ; = ! ? " A # C @com/groupbyinc/flux/common/util/concurrent/ConcurrentCollections E newConcurrentSet ()Ljava/util/Set; G H
F I $ % K java/util/Collections M unmodifiableSet (Ljava/util/Set;)Ljava/util/Set; O P
N Q ' % S 'com/groupbyinc/flux/index/IndexSettings U getMergeSchedulerConfig 2()Lcom/groupbyinc/flux/index/MergeSchedulerConfig; W X
V Y ( ) [ ] getSettings 0()Lcom/groupbyinc/flux/common/settings/Settings; _ `
V a c java/lang/Object e getClass ()Ljava/lang/Class; g h
f i java/lang/String k *com/groupbyinc/flux/common/logging/Loggers m getLogger ?(Ljava/lang/Class;Lcom/groupbyinc/flux/common/settings/Settings;Lcom/groupbyinc/flux/index/shard/ShardId;[Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; o p
n q s
refreshConfig u ,
v this HLcom/groupbyinc/flux/index/engine/ElasticsearchConcurrentMergeScheduler; )Lcom/groupbyinc/flux/index/IndexSettings; doMerge ?(Lcom/groupbyinc/flux/common/apache/lucene/index/IndexWriter;Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)V java/io/IOException } totalNumDocs ()I ?
? totalBytesSize ()J ? ?
? java/lang/System ? nanoTime ? ?
? ? inc ? ,
5 ? (J)V ? ?
5 ? ,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 ? ? ? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? 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 ? ? ? ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? -com/groupbyinc/flux/common/unit/ByteSizeValue ? * ?
? ? estimatedMergeBytes J ? ? ? trace o(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? :com/groupbyinc/flux/common/apache/lucene/index/IndexWriter ? beforeMerge 1(Lcom/groupbyinc/flux/index/merge/OnGoingMerge;)V ? ?
? { |
? )com/groupbyinc/flux/common/unit/TimeValue ?
nsecToMSec (J)J ? ?
? ? remove ? ? ? ?
afterMerge ? ?
? dec ? ,
5 ? ? ?
5 ?
0 ? getMergeProgress O()Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMergeProgress; ? ?
?
getPauseTimes ()Ljava/util/Map; ? ?
? STOPPED YLcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMergeProgress$PauseReason; ? ? ?
java/util/Map ? get &(Ljava/lang/Object;)Ljava/lang/Object; ? ? ? ? java/lang/Long ? longValue ? ?
? ? PAUSED ? ? ? java/lang/Thread ?
currentThread ()Ljava/lang/Thread; ? ?
? ? getTotalBytesWritten Z(Ljava/lang/Thread;Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)J
? getMbPerSec Z(Ljava/lang/Thread;Lcom/groupbyinc/flux/common/apache/lucene/index/MergePolicy$OneMerge;)D
? 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; ?
java/lang/Double (D)Ljava/lang/Double; ?
format K(Ljava/util/Locale;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
l! N {}% debug '(Ljava/lang/String;Ljava/lang/Object;)V'( ?) ?( ?+ java/lang/Throwable- tookMS stoppedMS throttledMS thread Ljava/lang/Thread; totalBytesWritten mbPerSec D message Ljava/lang/String; writer