YARN-8610. Fixed initiate upgrade error message.

Contributed by Chandni Singh
This commit is contained in:
Eric Yang 2018-08-01 20:41:43 -04:00
parent f2e29acbfa
commit 23f394240e

View File

@ -257,7 +257,7 @@ public int initiateUpgrade(Service service) throws YarnException,
if (!liveService.getState().equals(ServiceState.STABLE)) {
String message = service.getName() + " is at " +
liveService.getState()
+ " state, upgrade can not be invoked when service is STABLE.";
+ " state and upgrade can only be initiated when service is STABLE.";
LOG.error(message);
throw new YarnException(message);
}