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

Uneeded sleep time for tests in hbase.master.ServerManager#waitForRegionServers

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.92.0
    • Fix Version/s: 0.92.0
    • Component/s: test
    • Labels:
      None
    • Environment:

      all.

    • Hadoop Flags:
      Reviewed

      Description

      This functions waits for at least 2 times hbase.master.wait.on.regionservers.interval, defaulted at 3 seconds, i.e. 6 seconds for every mini hbase cluster starts.

      In the context of a mini cluster, it's not useful, as the regions servers are created locally.

      Changing this to a lower value such as 100ms gives 5.8 second per HBase cluser start. It should lower the build time on the apache server by more than 8%.

      Beeing more aggressive (removing all the wait time) could be possible as well. To be studied later.

        Attachments

        1. 4603-v2.txt
          0.6 kB
          Michael Stack
        2. 20111017_4603_MiniHBaseCluster.patch
          0.7 kB
          Nicolas Liochon

          Issue Links

            Activity

              People

              • Assignee:
                nkeywal Nicolas Liochon
                Reporter:
                nkeywal Nicolas Liochon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: