khandelwal-prateek commented on code in PR #4092: URL: https://github.com/apache/gobblin/pull/4092#discussion_r1961358840
########## gobblin-temporal/src/main/java/org/apache/gobblin/temporal/yarn/AbstractDynamicScalingYarnServiceManager.java: ########## @@ -110,9 +110,13 @@ public void run() { List<ScalingDirective> scalingDirectives = scalingDirectiveSource.getScalingDirectives(); if (CollectionUtils.isNotEmpty(scalingDirectives)) { dynamicScalingYarnService.reviseWorkforcePlanAndRequestNewContainers(scalingDirectives); + } else { + dynamicScalingYarnService.calcDeltasAndRequestContainers(); } } catch (FileNotFoundException fnfe) { Review Comment: when is this exception thrown? there is already a check for empty scalingDirective. Also, we should not be using exception as part of the control flow ########## gobblin-temporal/src/main/java/org/apache/gobblin/temporal/yarn/AbstractDynamicScalingYarnServiceManager.java: ########## @@ -110,9 +110,13 @@ public void run() { List<ScalingDirective> scalingDirectives = scalingDirectiveSource.getScalingDirectives(); if (CollectionUtils.isNotEmpty(scalingDirectives)) { dynamicScalingYarnService.reviseWorkforcePlanAndRequestNewContainers(scalingDirectives); + } else { + dynamicScalingYarnService.calcDeltasAndRequestContainers(); } } catch (FileNotFoundException fnfe) { - log.warn("Failed to get scaling directives - " + fnfe.getMessage()); // important message, but no need for a stack trace + log.debug("Failed to get scaling directives - " + fnfe.getMessage()); // important message, but no need for a stack trace Review Comment: I think this would be useful for debugging, any reason to change this to `debug` log level -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@gobblin.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org