File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
plugin/src/test/java/org/opensearch/ml/action Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 66package org .opensearch .ml .action ;
77
88import static org .opensearch .ml .common .input .parameter .regression .LogisticRegressionParams .ObjectiveType .LOGMULTICLASS ;
9+ import static org .opensearch .ml .common .settings .MLCommonsSettings .ML_COMMONS_DISK_FREE_SPACE_THRESHOLD ;
910import static org .opensearch .ml .common .settings .MLCommonsSettings .ML_COMMONS_NATIVE_MEM_THRESHOLD ;
1011import static org .opensearch .ml .common .settings .MLCommonsSettings .ML_COMMONS_ONLY_RUN_ON_ML_NODE ;
1112import static org .opensearch .ml .utils .RestActionUtils .getAllNodes ;
2829import org .opensearch .common .action .ActionFuture ;
2930import org .opensearch .common .settings .Settings ;
3031import org .opensearch .common .xcontent .XContentType ;
32+ import org .opensearch .core .common .unit .ByteSizeUnit ;
33+ import org .opensearch .core .common .unit .ByteSizeValue ;
3134import org .opensearch .index .query .QueryBuilder ;
3235import org .opensearch .index .query .QueryBuilders ;
3336import org .opensearch .index .query .TermQueryBuilder ;
@@ -439,6 +442,8 @@ protected Settings nodeSettings(int ordinal) {
439442 .put (ML_COMMONS_ONLY_RUN_ON_ML_NODE .getKey (), false )
440443 // Set native memory threshold as 100 to prevent IT failures
441444 .put (ML_COMMONS_NATIVE_MEM_THRESHOLD .getKey (), 100 )
445+ // Set disk free space threshold to 100MB - low enough for CI environments
446+ .put (ML_COMMONS_DISK_FREE_SPACE_THRESHOLD .getKey (), new ByteSizeValue (100L , ByteSizeUnit .MB ))
442447 .build ();
443448 }
444449}
You can’t perform that action at this time.
0 commit comments