hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cosmin Lehene (JIRA)" <j...@apache.org>
Subject [jira] Created: (HBASE-1857) WrongRegionException when setting region online after .META. split
Date Tue, 22 Sep 2009 16:26:15 GMT
WrongRegionException when setting region online after .META. split

                 Key: HBASE-1857
                 URL: https://issues.apache.org/jira/browse/HBASE-1857
             Project: Hadoop HBase
          Issue Type: Bug
          Components: master
    Affects Versions: 0.20.0
         Environment: OSX/Linux
            Reporter: Cosmin Lehene
             Fix For: 0.20.1

After splitting .META. when updating region information in .META. (e.g. ProcessRegionOpen)
the wrong .META. region was retrieved in RegionManager from onlineMetaRegions map. 
This is due to a bug in RegionManager.getFirstMetaRegionForRegion that was using the wrong
key to get data out of the map (the table name instead of the region name) 

return onlineMetaRegions.get(onlineMetaRegions.headMap(newRegion.getTableDesc().getName()).lastKey());

and when adding the region to the map it was added with 

onlineMetaRegions.put(metaRegion.getStartKey(), metaRegion);

so it's supposed to be taken out with: 
return onlineMetaRegions.get(onlineMetaRegions.headMap(newRegion.getRegionName()).lastKey());

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message