HBASE-1908 ROOT not reassigned if only one regionserver left
git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@826903 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
93bd67d54c
commit
42d9fca0d1
|
@ -72,6 +72,7 @@ Release 0.21.0 - Unreleased
|
||||||
cause NPE during re-indexing (Mingjui Ray Liao via Andrew
|
cause NPE during re-indexing (Mingjui Ray Liao via Andrew
|
||||||
Purtell)
|
Purtell)
|
||||||
HBASE-1916 FindBugs and javac warnings cleanup
|
HBASE-1916 FindBugs and javac warnings cleanup
|
||||||
|
HBASE-1908 ROOT not reassigned if only one regionserver left
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
|
@ -400,8 +400,9 @@ class RegionManager implements HConstants {
|
||||||
// make sure root isnt assigned here first.
|
// make sure root isnt assigned here first.
|
||||||
// if so return 'empty list'
|
// if so return 'empty list'
|
||||||
// by definition there is no way this could be a ROOT region (since it's
|
// by definition there is no way this could be a ROOT region (since it's
|
||||||
// unassigned) so just make sure it isn't hosting META regions.
|
// unassigned) so just make sure it isn't hosting META regions (unless
|
||||||
if (!isMetaServer) {
|
// it's the only server left).
|
||||||
|
if (!isMetaServer || isSingleServer) {
|
||||||
regionsToAssign.add(rootState);
|
regionsToAssign.add(rootState);
|
||||||
}
|
}
|
||||||
return regionsToAssign;
|
return regionsToAssign;
|
||||||
|
|
Loading…
Reference in New Issue