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

Speed up tests by lowering some sleeps

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.90.1
    • 0.90.3
    • None
    • None
    • Reviewed

    Description

      While trying TestAdmin in the scope of HBASE-3650, I saw that it takes a lot more time to run than it used to. Upon inspection I see that there's 2 hardcoded 1 second sleeps in DisableTableHandler and EnableTableHandler in waitUntilDone (which is almost the same code in both cases too). Setting that down to 50ms dropped the run time in half... and I'm sure there's a few other sleeps that we could get rid of.

      I think that at least those 1sec should be configurable so that we can tune them down in the tests, but I wonder if we need them at all.

      Attachments

        1. HBASE-3652.patch
          6 kB
          Jean-Daniel Cryans

        Activity

          People

            jdcryans Jean-Daniel Cryans
            jdcryans Jean-Daniel Cryans
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: