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

Multiple invocations of hbck in parallel disables balancer permanently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.99.0
    • 0.98.7, 0.94.24, 0.99.1
    • Balancer, hbck
    • None
    • Reviewed

    Description

      This is because of the following piece of code in hbck

        boolean oldBalancer = admin.setBalancerRunning(false, true);
          try {
            onlineConsistencyRepair();
          }
          finally {
            admin.setBalancerRunning(oldBalancer, false);
          }
      

      Newer invocations set oldBalancer to false as it was disabled by previous invocations and this disables balancer permanently unless its manually turned on by the user. Easy to reproduce, just run hbck 100 times in a loop in 2 different sessions and you can see that balancer is set to false in the HMaster logs.

      Attachments

        1. HBASE-11405-trunk-rebased.patch
          8 kB
          Bharath Vissapragada
        2. HBASE-11405-trunk.patch.1
          8 kB
          Bharath Vissapragada
        3. HBASE-11405-trunk.patch
          8 kB
          Bharath Vissapragada
        4. HBASE-11405-0.98.patch.txt
          14 kB
          Sean Busbey
        5. HBASE-11405-0.94.patch.txt
          14 kB
          Sean Busbey
        6. hbase-11405.rebase.140911.patch
          8 kB
          Jonathan Hsieh
        7. 11405v7.patch
          8 kB
          Bharath Vissapragada
        8. 11405-v6.patch
          9 kB
          Bharath Vissapragada
        9. 11405-v5.patch
          8 kB
          Bharath Vissapragada
        10. 11405-v3.txt
          8 kB
          Ted Yu
        11. 11405-1.0.txt
          8 kB
          Ted Yu
        12. 11405-0.98-v2.patch
          13 kB
          Ted Yu

        Issue Links

          Activity

            People

              bharathv Bharath Vissapragada
              bharathv Bharath Vissapragada
              Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: