YARN-10682. The scheduler monitor policies conf should trim values separated by comma. Contributed by Qi Zhu.

This commit is contained in:
Peter Bacsko 2021-03-16 15:23:27 +01:00
parent e9c98548e9
commit b80588b688

View File

@ -61,7 +61,7 @@ private void updateSchedulingMonitors(Configuration conf,
}
// When monitor is enabled, loading policies
String[] configuredPolicies = conf.getStrings(
String[] configuredPolicies = conf.getTrimmedStrings(
YarnConfiguration.RM_SCHEDULER_MONITOR_POLICIES);
if (configuredPolicies == null || configuredPolicies.length == 0) {
return;