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

RSGroupBasedLoadBalancer.retainAssignment() might miss a region

    XMLWordPrintableJSON

    Details

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

      Description

      We have seen in the tests through the IntegrationTestRSGroup that we may miss assigning a region.

      It is a simple logic error here:

              if (server != null && !assignments.containsKey(server)) {
                assignments.put(server, new ArrayList<HRegionInfo>());
              } else if (server != null) {
                 assignments.get(server).add(region);
               } else {
      

      in the first condition, we are not adding the region to the newly created ArrayList.

        Attachments

        1. hbase-16133_v1.patch
          1 kB
          Enis Soztutar

          Issue Links

            Activity

              People

              • Assignee:
                enis Enis Soztutar
                Reporter:
                enis Enis Soztutar
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: