Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9761

Rebalancer sleeps too long between iterations

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 2.8.0, 3.0.0-alpha1
    • balancer & mover
    • None
    • Reviewed

    Description

      Whilst reading the code to try and determine why I'm seeing bad performance I think I've spotted an inadvertent move of a sleep() to inside a for loop.

      This means that instead of sleeping once per iteration the balance is sleeping once per namenode per iteration. If I've done my maths correctly the sleep time default is 18seconds so this is a nice little speedup for HA clusters.

      Commit d31a41c35927f02f2fb40d19380b5df4bb2b6d57 moved the sleep in org/apache/hadoop/hdfs/server/balancer/Balancer.java:run()

      Attachments

        1. HDFS-9761.000.patch
          1.0 kB
          Mingliang Liu

        Issue Links

          Activity

            People

              liuml07 Mingliang Liu
              abridgett Adrian Bridgett
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: