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

RSGroupBasedLoadBalancer#getMisplacedRegions() should handle the case where rs group cannot be determined

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4.1, 2.0.0-beta-1, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Observed the following in rs group test output:

      2018-01-10 14:17:23,006 DEBUG [AssignmentThread] rsgroup.RSGroupBasedLoadBalancer(316): Found misplaced region: hbase:acl,,1515593841277.ecf47ecb7522d7fab40db0a237f973fd. on server: localhost,1,1 found in group: null outside of group: UNKNOWN
      

      Here is corresponding code:

            if (assignedServer != null &&
                (info == null || !info.containsServer(assignedServer.getAddress()))) {
              RSGroupInfo otherInfo = null;
              otherInfo = rsGroupInfoManager.getRSGroupOfServer(assignedServer.getAddress());
              LOG.debug("Found misplaced region: " + regionInfo.getRegionNameAsString() +
      

      As you can see, both info and otherInfo were null.

      In this case, the region should not be placed in misplacedRegions.

        Attachments

        1. 19752.v1.txt
          1 kB
          Ted Yu
        2. 19752.v2.txt
          1 kB
          Ted Yu
        3. 19752.v3.txt
          2 kB
          Ted Yu
        4. 19752.v4.txt
          2 kB
          Ted Yu
        5. 19752.v5.txt
          4 kB
          Ted Yu
        6. 19752.v6.txt
          4 kB
          Ted Yu
        7. 19752.v7.branch-1.txt
          4 kB
          Ted Yu
        8. 19752.v7.txt
          4 kB
          Ted Yu

          Activity

            People

            • Assignee:
              yuzhihong@gmail.com Ted Yu
              Reporter:
              yuzhihong@gmail.com Ted Yu
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: