@@ -97,6 +97,8 @@ public void testEnqueuedAndBackloggedMergesAreStillExecutedWhenThreadPoolIsShutd
9797 Settings settings = Settings .builder ()
9898 .put (ThreadPoolMergeScheduler .USE_THREAD_POOL_MERGE_SCHEDULER_SETTING .getKey (), true )
9999 .put (EsExecutors .NODE_PROCESSORS_SETTING .getKey (), mergeExecutorThreadCount )
100+ // disable fs available disk space feature for this test
101+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
100102 .build ();
101103 TestThreadPool testThreadPool = new TestThreadPool ("test" , settings );
102104 nodeEnvironment = newNodeEnvironment (settings );
@@ -213,6 +215,8 @@ public void testTargetIORateChangesWhenSubmittingMergeTasks() throws Exception {
213215 Settings settings = Settings .builder ()
214216 .put (ThreadPoolMergeScheduler .USE_THREAD_POOL_MERGE_SCHEDULER_SETTING .getKey (), true )
215217 .put (EsExecutors .NODE_PROCESSORS_SETTING .getKey (), mergeExecutorThreadCount )
218+ // disable fs available disk space feature for this test
219+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
216220 .build ();
217221 nodeEnvironment = newNodeEnvironment (settings );
218222 try (TestThreadPool testThreadPool = new TestThreadPool ("test" , settings )) {
@@ -298,6 +302,8 @@ public void testIORateIsAdjustedForRunningMergeTasks() throws Exception {
298302 Settings settings = Settings .builder ()
299303 .put (ThreadPoolMergeScheduler .USE_THREAD_POOL_MERGE_SCHEDULER_SETTING .getKey (), true )
300304 .put (EsExecutors .NODE_PROCESSORS_SETTING .getKey (), mergeExecutorThreadCount )
305+ // disable fs available disk space feature for this test
306+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
301307 .build ();
302308 nodeEnvironment = newNodeEnvironment (settings );
303309 try (TestThreadPool testThreadPool = new TestThreadPool ("test" , settings )) {
@@ -396,7 +402,8 @@ private void testIORateAdjustedForSubmittedTasks(int totalTasksToSubmit, int sub
396402 DeterministicTaskQueue mergeExecutorTaskQueue = new DeterministicTaskQueue ();
397403 ThreadPool mergeExecutorThreadPool = mergeExecutorTaskQueue .getThreadPool ();
398404 Settings settings = Settings .builder ()
399- .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0" )
405+ // disable fs available disk space feature for this test
406+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
400407 .build ();
401408 if (nodeEnvironment != null ) {
402409 nodeEnvironment .close ();
@@ -465,6 +472,8 @@ public void testMergeTasksRunConcurrently() throws Exception {
465472 Settings settings = Settings .builder ()
466473 .put (ThreadPoolMergeScheduler .USE_THREAD_POOL_MERGE_SCHEDULER_SETTING .getKey (), true )
467474 .put (EsExecutors .NODE_PROCESSORS_SETTING .getKey (), mergeExecutorThreadCount )
475+ // disable fs available disk space feature for this test
476+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
468477 .build ();
469478 nodeEnvironment = newNodeEnvironment (settings );
470479 try (TestThreadPool testThreadPool = new TestThreadPool ("test" , settings )) {
@@ -550,6 +559,8 @@ public void testThreadPoolStatsWithBackloggedMergeTasks() throws Exception {
550559 Settings settings = Settings .builder ()
551560 .put (ThreadPoolMergeScheduler .USE_THREAD_POOL_MERGE_SCHEDULER_SETTING .getKey (), true )
552561 .put (EsExecutors .NODE_PROCESSORS_SETTING .getKey (), mergeExecutorThreadCount )
562+ // disable fs available disk space feature for this test
563+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
553564 .build ();
554565 nodeEnvironment = newNodeEnvironment (settings );
555566 try (TestThreadPool testThreadPool = new TestThreadPool ("test" , settings )) {
@@ -608,6 +619,8 @@ public void testBackloggedMergeTasksExecuteExactlyOnce() throws Exception {
608619 .put (ThreadPoolMergeScheduler .USE_THREAD_POOL_MERGE_SCHEDULER_SETTING .getKey (), true )
609620 // few merge threads, in order to increase contention
610621 .put (EsExecutors .NODE_PROCESSORS_SETTING .getKey (), mergeExecutorThreadCount )
622+ // disable fs available disk space feature for this test
623+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
611624 .build ();
612625 nodeEnvironment = newNodeEnvironment (settings );
613626 try (TestThreadPool testThreadPool = new TestThreadPool ("test" , settings )) {
@@ -675,7 +688,8 @@ public void testMergeTasksExecuteInSizeOrder() throws IOException {
675688 DeterministicTaskQueue mergeExecutorTaskQueue = new DeterministicTaskQueue ();
676689 ThreadPool mergeExecutorThreadPool = mergeExecutorTaskQueue .getThreadPool ();
677690 Settings settings = Settings .builder ()
678- .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0" )
691+ // disable fs available disk space feature for this test
692+ .put (ThreadPoolMergeExecutorService .INDICES_MERGE_DISK_CHECK_INTERVAL_SETTING .getKey (), "0s" )
679693 .build ();
680694 nodeEnvironment = newNodeEnvironment (settings );
681695 ThreadPoolMergeExecutorService threadPoolMergeExecutorService = getThreadPoolMergeExecutorService (
0 commit comments