ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-61

Address (remove) use of sleep(#) in client/server test cases.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: tests
    • Labels:
      None

      Description

      Many of the java client/server test cases use "sleep" during initial rendezvous. This makes the tests slow, very brittle and they tend to fail occasionally during CI (depending on load). In particular I've seen QuorumTest exhibit this.

      Would also be nice if we could extract the "base" client/server test functionality to enable re-use and make test writing easier. I started this with ClientBase in tests but could do a better job.

        Issue Links

          Activity

            People

            • Assignee:
              Patrick Hunt
              Reporter:
              Patrick Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development