HBASE-3213 If do abort of backup master will get NPE instead of graceful abort
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1033360 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
9f9de3410b
commit
afeb06a5aa
|
@ -669,6 +669,8 @@ Release 0.90.0 - Unreleased
|
||||||
place; i.e. that only one enable/disable runs at a time
|
place; i.e. that only one enable/disable runs at a time
|
||||||
HBASE-2898 MultiPut makes proper error handling impossible and leads to
|
HBASE-2898 MultiPut makes proper error handling impossible and leads to
|
||||||
corrupted data
|
corrupted data
|
||||||
|
HBASE-3213 If do abort of backup master will get NPE instead of graceful
|
||||||
|
abort
|
||||||
|
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
|
@ -279,7 +279,8 @@ implements HMasterInterface, HMasterRegionInterface, MasterServices, Server {
|
||||||
stopChores();
|
stopChores();
|
||||||
// Wait for all the remaining region servers to report in IFF we were
|
// Wait for all the remaining region servers to report in IFF we were
|
||||||
// running a cluster shutdown AND we were NOT aborting.
|
// running a cluster shutdown AND we were NOT aborting.
|
||||||
if (!this.abort && this.serverManager.isClusterShutdown()) {
|
if (!this.abort && this.serverManager != null &&
|
||||||
|
this.serverManager.isClusterShutdown()) {
|
||||||
this.serverManager.letRegionServersShutdown();
|
this.serverManager.letRegionServersShutdown();
|
||||||
}
|
}
|
||||||
stopServiceThreads();
|
stopServiceThreads();
|
||||||
|
|
Loading…
Reference in New Issue