YARN-9682. Wrong log message when finalizing the upgrade. Contributed by kyungwan nam.

This commit is contained in:
Weiwei Yang 2019-07-17 10:28:20 +08:00
parent 5915c902aa
commit 85d9111a88

View File

@ -1347,7 +1347,7 @@ public ApplicationId actionStartAndGetId(String serviceName) throws
LOG.info("Persisted service " + service.getName() + " at " + appJson); LOG.info("Persisted service " + service.getName() + " at " + appJson);
return appId; return appId;
} else { } else {
LOG.info("Finalize service {} upgrade"); LOG.info("Finalize service {} upgrade", serviceName);
ApplicationId appId = getAppId(serviceName); ApplicationId appId = getAppId(serviceName);
ApplicationReport appReport = yarnClient.getApplicationReport(appId); ApplicationReport appReport = yarnClient.getApplicationReport(appId);
if (StringUtils.isEmpty(appReport.getHost())) { if (StringUtils.isEmpty(appReport.getHost())) {