Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-15848

Fix possible null point dereference in RSGroupBasedLoadBalancer#getMisplacedRegions()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: 2.0.0
    • Component/s: regionserver
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Possible null pointer dereference of local variable 'info' in the function RSGroupBasedLoadBalancer#getMisplacedRegions():

            if (assignedServer != null &&
                (info == null || !info.containsServer(assignedServer.getHostPort()))) {
              LOG.debug("Found misplaced region: " + region.getRegionNameAsString() +
                  " on server: " + assignedServer +
                  " found in group: " +
                  RSGroupInfoManager.getRSGroupOfServer(assignedServer.getHostPort()) +
                  " outside of group: " + info.getName());
              misplacedRegions.add(region);
            }
      

        Attachments

        1. HBASE-15848.v1-master.patch
          1 kB
          Stephen Yuan Jiang

          Issue Links

            Activity

              People

              • Assignee:
                syuanjiang Stephen Yuan Jiang
                Reporter:
                syuanjiang Stephen Yuan Jiang
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: