hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaojinchao <gaojinc...@huawei.com>
Subject A question about Master failover
Date Tue, 09 Aug 2011 09:15:15 GMT

In function rebuildUserRegions,  The region that regionLocation is null is put into regions
set. It seems a bug.
It will throw exception when DisableTableHandler processes it.  Skipping this region seems
better.

code:
if (regionLocation == null) {
        // Region not being served, add to region map with no assignment
        // If this needs to be assigned out, it will also be in ZK as RIT
        // add if the table is not in disabled state
        if (false == checkIfRegionBelongsToDisabled(regionInfo)) {
          this.regions.put(regionInfo, null);
        }
        if (checkIfRegionBelongsToDisabling(regionInfo)) {                 //Should we skip
this region?
          disablingTables.add(disablingTableName);
        }
} else if (!serverManager.isServerOnline(regionLocation.getServerName())) {

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message