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

RSGroupBasedLoadBalancer.retainAssignment() might miss a region

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: