Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-111

significant cleanup of existing tests

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0
    • tests
    • None
    • Reviewed

    Description

      About to submit a patch that significantly cleans up existing tests.

      1) removed the need for "sleep" calls in the tests, instead I monitor the status of the server (using the client socket "stat" command) which provides a barrier to the client test operations. I use this barrier both when starting and ending the test.

      2) also fixed a number of problems in the tests where the test itself was broken.

      3) general cleanup and some refactoring to make it easier to write new tests, maintain old, and track down issues if the test does find a problem.

      Attachments

        1. ZOOKEEPER-111.patch
          108 kB
          Patrick D. Hunt
        2. TEST-org.apache.zookeeper.test.QuorumTest.txt
          367 kB
          Flavio Paiva Junqueira
        3. ZOOKEEPER-111.patch
          116 kB
          Patrick D. Hunt
        4. ZOOKEEPER-111.patch
          112 kB
          Patrick D. Hunt
        5. ZOOKEEPER-111.patch
          101 kB
          Patrick D. Hunt
        6. TEST-org.apache.zookeeper.test.AsyncTest.txt
          779 kB
          Flavio Paiva Junqueira
        7. ZOOKEEPER-111.patch
          74 kB
          Patrick D. Hunt
        8. ZOOKEEPER-111.patch
          49 kB
          Patrick D. Hunt

        Issue Links

          Activity

            People

              phunt Patrick D. Hunt
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: