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

Balancer should reset to default setting for hbase.master.loadbalance.bytable if dynamically reloading configuration

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0.0-alpha-1, 2.0.0
    • 2.5.0, 3.0.0-alpha-3
    • Balancer
    • None
    • Reviewed

    Description

      1. Set hbase.master.loadbalance.bytable to true in hbase-site.xml
      2. Start HMaster
      3. Remove hbase.master.loadbalance.bytable entry in hbase-site.xml
      4. Dynamically reload configuration for hmaster (https://hbase.apache.org/book.html#dyn_config)

      Expected: load balancing would no longer happen by table
      Actual: load balancing still happens by table
      Workaround: leave the entry in hbase-site.xml but explicitly set to false

      Note 1: The steps may only work if the config value is not in hbase-default.xml so it may be an unlikely scenario.

      Note 2: I see this when running tests added in HBASE-22349, depending on the order of execution of test methods. If testSloppyTablesLoadBalanceByTable executes before testBalanceOfSloppyServers there will be a failure. We could apply the workaround to the tests (explicitly set to false), but it seems better to fix the dynamic reconfiguration behavior. Regardless, I will propose test fixes in HBASE-26989.

      Attachments

        Issue Links

          Activity

            People

              dmanning David Manning
              dmanning David Manning
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: