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

The value of balancerRan is true even though no plans are executed

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed

      Description

            //We balance per group instead of per table
            List<RegionPlan> plans = new ArrayList<>();
            for(Map.Entry<TableName, Map<ServerName, List<HRegionInfo>>> tableMap:
                getRSGroupAssignmentsByTable(groupName).entrySet()) {
              LOG.info("Creating partial plan for table " + tableMap.getKey() + ": "
                  + tableMap.getValue());
              List<RegionPlan> partialPlans = balancer.balanceCluster(tableMap.getValue());
              LOG.info("Partial plan for table " + tableMap.getKey() + ": " + partialPlans);
              if (partialPlans != null) {
                plans.addAll(partialPlans);
              }
            }
            long startTime = System.currentTimeMillis();
            balancerRan = plans != null;
      

      The plans is never null.

        Attachments

        1. HBASE-18765.v0.patch
          2 kB
          Chia-Ping Tsai

          Activity

            People

            • Assignee:
              chia7712 Chia-Ping Tsai
              Reporter:
              chia7712 Chia-Ping Tsai
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: