YARN-8610. Fixed initiate upgrade error message.
Contributed by Chandni Singh
(cherry picked from commit 23f394240e
)
This commit is contained in:
parent
c8fbe7921b
commit
680dac26d8
|
@ -253,7 +253,7 @@ public class ServiceClient extends AppAdminClient implements SliderExitCodes,
|
||||||
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