HBASE-18890, Backport HBASE-14499 (Master coprocessors shutdown will not happen on master abort) to branch-1

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Pankaj Kumar 2017-09-28 20:41:28 +08:00 committed by tedyu
parent 93ad1aba70
commit b2943504b8
1 changed files with 6 additions and 1 deletions

View File

@ -2551,7 +2551,12 @@ public class HMaster extends HRegionServer implements MasterServices, Server {
getLoadedCoprocessors());
}
if (t != null) LOG.fatal(msg, t);
stop(msg);
try {
stopMaster();
} catch (IOException e) {
LOG.error("Exception occurred while stopping master", e);
}
}
@Override