YARN-8610. Fixed initiate upgrade error message.
Contributed by Chandni Singh
This commit is contained in:
parent
f2e29acbfa
commit
23f394240e
@ -257,7 +257,7 @@ public int initiateUpgrade(Service service) throws YarnException,
|
|||||||
if (!liveService.getState().equals(ServiceState.STABLE)) {
|
if (!liveService.getState().equals(ServiceState.STABLE)) {
|
||||||
String message = service.getName() + " is at " +
|
String message = service.getName() + " is at " +
|
||||||
liveService.getState()
|
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);
|
LOG.error(message);
|
||||||
throw new YarnException(message);
|
throw new YarnException(message);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user