hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jimmy Xiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-9048) HCM throws NullPointerException under load
Date Fri, 26 Jul 2013 21:21:49 GMT
Jimmy Xiang created HBASE-9048:

             Summary: HCM throws NullPointerException under load
                 Key: HBASE-9048
                 URL: https://issues.apache.org/jira/browse/HBASE-9048
             Project: HBase
          Issue Type: Bug
          Components: Client
            Reporter: Jimmy Xiang
            Assignee: Jimmy Xiang
            Priority: Minor

HCM uses SoftValueSortedMap to cache region locations.  Under load, some soft referred values
may be GCed.  So we should check if the value is null.  Otherwise, NPE will be thrown:

        for (Map<byte[], HRegionLocation> tableLocations :
            cachedRegionLocations.values()) {
          for (Entry<byte[], HRegionLocation> e : tableLocations.entrySet()) {
       ===> if (serverName.equals(e.getValue().getServerName())) {
              deletedSomething = true;

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

View raw message