Amend HDFS-2948. NN throws NPE during shutdown if it fails to startup
Previous patch missed the case where the NN fails to start up when it's starting in standby state. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1623@1244813 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f7f2ef4447
commit
0663b51ed4
@ -995,8 +995,10 @@ public void prepareToStopStandbyServices() throws ServiceFailedException {
|
||||
@Override
|
||||
public void stopStandbyServices() throws IOException {
|
||||
// TODO(HA): Are we guaranteed to be the only active here?
|
||||
if (namesystem != null) {
|
||||
namesystem.stopStandbyServices();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void writeLock() {
|
||||
|
Loading…
Reference in New Issue
Block a user