com.groupbyinc.flux.index.reindex.WorkingBulkByScrollTask.class Maven / Gradle / Ivy
???? 4^ 9com/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask 2com/groupbyinc/flux/index/reindex/BulkByScrollTask 7com/groupbyinc/flux/index/reindex/SuccessfullyProcessed WorkingBulkByScrollTask.java Acom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask$RunOnce RunOnce Scom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask$DelayedPrepareBulkRequest DelayedPrepareBulkRequest 9com/groupbyinc/flux/index/reindex/BulkByScrollTask$Status Status %com/groupbyinc/flux/tasks/Task$Status com/groupbyinc/flux/tasks/Task logger 8Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger; sliceId Ljava/lang/Integer; total (Ljava/util/concurrent/atomic/AtomicLong; updated created deleted noops batch +Ljava/util/concurrent/atomic/AtomicInteger; versionConflicts bulkRetries
searchRetries throttledNanos requestsPerSecond F "delayedPrepareBulkRequestReference -Ljava/util/concurrent/atomic/AtomicReference; ?Ljava/util/concurrent/atomic/AtomicReference; p(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;Ljava/lang/Integer;F)V \(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/groupbyinc/flux/tasks/TaskId;)V * ,
- &java/util/concurrent/atomic/AtomicLong / (J)V * 1
0 2 4 6 8 : < )java/util/concurrent/atomic/AtomicInteger > (I)V * @
? A C ! E " G # I ()V * K
0 L $ N +java/util/concurrent/atomic/AtomicReference P
Q L ' ( S U setRequestsPerSecond (F)V W X
Y this ;Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask; id J type Ljava/lang/String; action description
parentTask "Lcom/groupbyinc/flux/tasks/TaskId; getStatus =()Lcom/groupbyinc/flux/index/reindex/BulkByScrollTask$Status; get ()J g h
0 i ()I g k
? l )com/groupbyinc/flux/common/unit/TimeValue n timeValueNanos .(J)Lcom/groupbyinc/flux/common/unit/TimeValue; p q
o r getRequestsPerSecond ()F t u
v getReasonCancelled ()Ljava/lang/String; x y
z throttledUntil -()Lcom/groupbyinc/flux/common/unit/TimeValue; | }
~ ?(Ljava/lang/Integer;JJJJIJJJJLcom/groupbyinc/flux/common/unit/TimeValue;FLjava/lang/String;Lcom/groupbyinc/flux/common/unit/TimeValue;)V * ?
? onCancelled?
rethrottle ? X
? runningSliceSubTasks getInfoGivenSliceInfo H(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/tasks/TaskInfo; 'java/lang/UnsupportedOperationException ? java/lang/StringBuilder ?
? L This is only supported by ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? 8com/groupbyinc/flux/index/reindex/ParentBulkByScrollTask ? java/lang/Class ? getName ? y
? ? . ? toString ? y
? ? (Ljava/lang/String;)V * ?
? ? localNodeId sliceInfo 6Ljava/util/List; Ljava/util/List; ()Ljava/lang/Object; g ?
Q ?
access$000 }(Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask$DelayedPrepareBulkRequest;)Ljava/util/concurrent/ScheduledFuture; ? ?
? java/util/concurrent/TimeUnit ? NANOSECONDS Ljava/util/concurrent/TimeUnit; ? ? ? ? $java/util/concurrent/ScheduledFuture ? getDelay "(Ljava/util/concurrent/TimeUnit;)J ? ? ? ? java/lang/Math ? max (JJ)J ? ?
? ? delayed ULcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask$DelayedPrepareBulkRequest; setTotal set ? 1
0 ? totalHits
countBatch incrementAndGet ? k
? ? countNoop ? h
0 ?
getCreated countCreated
getUpdated countUpdated
getDeleted countDeleted countVersionConflict countBulkRetry countSearchRetry % & ? delayPrepareBulkRequest ?(Lcom/groupbyinc/flux/threadpool/ThreadPool;Lcom/groupbyinc/flux/common/unit/TimeValue;ILcom/groupbyinc/flux/common/util/concurrent/AbstractRunnable;)V java/lang/System ? nanoTime ? h
? ? throttleWaitTime ?(Lcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/unit/TimeValue;I)Lcom/groupbyinc/flux/common/unit/TimeValue; ? ?
? ? %[{}]: preparing bulk request for [{}] ? getId ? h
? java/lang/Long ? valueOf (J)Ljava/lang/Long; ? ?
? ? 6com/groupbyinc/flux/common/apache/logging/log4j/Logger ? debug 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ? ? ? ? @(Lcom/groupbyinc/flux/common/util/concurrent/AbstractRunnable;)V * ?
? ?(Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask;Lcom/groupbyinc/flux/threadpool/ThreadPool;FLcom/groupbyinc/flux/common/unit/TimeValue;Lcom/groupbyinc/flux/common/util/concurrent/AbstractRunnable;)V * ?
? (Ljava/lang/Object;)V ? ?
Q )com/groupbyinc/flux/threadpool/ThreadPool ;com/groupbyinc/flux/common/util/concurrent/AbstractRunnable java/lang/Object java/lang/Throwable delay +Lcom/groupbyinc/flux/common/unit/TimeValue;
threadPool +Lcom/groupbyinc/flux/threadpool/ThreadPool; lastBatchStartTime
lastBatchSize I prepareBulkRequestRunnable =Lcom/groupbyinc/flux/common/util/concurrent/AbstractRunnable; nanos h
o perfectlyThrottledBatchTime (I)F
now earliestNextBatchStartTime SECONDS ? ? toNanos (J)J
?! targetBatchTimeInSeconds "java/lang/IllegalArgumentException$ 1requests per second must be more than 0 but was [& (F)Ljava/lang/StringBuilder; ?(
?) ]+
% ? .[{}]: rethrottling to [{}] requests per second. java/lang/Float0 (F)Ljava/lang/Float; ?2
13 >[{}]: skipping rescheduling because there is no scheduled task5 '(Ljava/lang/String;Ljava/lang/Object;)V ?7 ?8 X(F)Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask$DelayedPrepareBulkRequest; ?:
; delayedPrepareBulkRequest newRequestsPerSecond )()Lcom/groupbyinc/flux/tasks/Task$Status; e f
@
access$100 e(Lcom/groupbyinc/flux/index/reindex/WorkingBulkByScrollTask;)Ljava/util/concurrent/atomic/AtomicLong; x0
access$200 :()Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;
getPackage ()Ljava/lang/Package;HI
?J java/lang/PackageL
M ? 2com/groupbyinc/flux/common/logging/ESLoggerFactoryO getLogger L(Ljava/lang/String;)Lcom/groupbyinc/flux/common/apache/logging/log4j/Logger;QR
PS Signature Code LocalVariableTable LineNumberTable LocalVariableTypeTable n(Ljava/lang/String;Ljava/util/List;)Lcom/groupbyinc/flux/tasks/TaskInfo;
StackMapTable
SourceFile InnerClasses ! ! " # $ B % &