HDFS-2948. NN throws NPE during shutdown if it fails to startup. Contributed by Todd Lipcon.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-1623@1244186 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0e4ae55f2
commit
439490f915
|
@ -200,3 +200,5 @@ HDFS-2939. TestHAStateTransitions fails on Windows. (Uma Maheswara Rao G via atm
|
|||
HDFS-2947. On startup NN throws an NPE in the metrics system. (atm)
|
||||
|
||||
HDFS-2942. TestActiveStandbyElectorRealZK fails if build dir does not exist. (atm)
|
||||
|
||||
HDFS-2948. NN throws NPE during shutdown if it fails to startup (todd)
|
||||
|
|
|
@ -974,7 +974,9 @@ public class NameNode {
|
|||
|
||||
@Override
|
||||
public void stopActiveServices() throws IOException {
|
||||
namesystem.stopActiveServices();
|
||||
if (namesystem != null) {
|
||||
namesystem.stopActiveServices();
|
||||
}
|
||||
stopTrashEmptier();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue