File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
server/src/main/java/org/elasticsearch/index/engine Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 5555
5656public class ThreadPoolMergeExecutorService implements Closeable {
5757 /** How frequently we check disk usage (default: 5 seconds). */
58- public static final Setting <TimeValue > INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING = Setting .timeSetting (
58+ public static final Setting <TimeValue > INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING = Setting .positiveTimeSetting (
5959 "indices.merge.disk.check_interval" ,
6060 TimeValue .timeValueSeconds (5 ),
61- TimeValue .MINUS_ONE ,
6261 Setting .Property .NodeScope
6362 );
6463 public static final Setting <RelativeByteSizeValue > INDICES_MERGE_DISK_HIGH_WATERMARK_SETTING = new Setting <>(
@@ -453,8 +452,9 @@ ElementWithReleasableBudget take() throws InterruptedException {
453452 try {
454453 E peek ;
455454 long peekBudget ;
456- while ((peek = enqueuedByBudget .peek ()) == null || (peekBudget = budgetFunction .applyAsLong (peek )) > availableBudget )
455+ while ((peek = enqueuedByBudget .peek ()) == null || (peekBudget = budgetFunction .applyAsLong (peek )) > availableBudget ) {
457456 elementAvailable .await ();
457+ }
458458 return new ElementWithReleasableBudget (enqueuedByBudget .poll (), peekBudget );
459459 } finally {
460460 lock .unlock ();
You can’t perform that action at this time.
0 commit comments