HBASE-13663 HMaster fails to restart 'HMaster: Failed to become active master'
This commit is contained in:
parent
9e131dfa8e
commit
89688d4a43
|
@ -1653,6 +1653,7 @@ public class AssignmentManager {
|
||||||
HRegionLocation[] locations = rl.getRegionLocations();
|
HRegionLocation[] locations = rl.getRegionLocations();
|
||||||
if (locations == null) continue;
|
if (locations == null) continue;
|
||||||
for (HRegionLocation hrl : locations) {
|
for (HRegionLocation hrl : locations) {
|
||||||
|
if (hrl == null) continue;
|
||||||
HRegionInfo regionInfo = hrl.getRegionInfo();
|
HRegionInfo regionInfo = hrl.getRegionInfo();
|
||||||
if (regionInfo == null) continue;
|
if (regionInfo == null) continue;
|
||||||
int replicaId = regionInfo.getReplicaId();
|
int replicaId = regionInfo.getReplicaId();
|
||||||
|
|
Loading…
Reference in New Issue