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

two flaws need addressing in the c tests that can cause false positive failures

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.0
    • c client, tests
    • None
    • Reviewed

    Description

      1) createClient in testclient.cc (check all tests) is not correctly waiting for syncconnected to the server
      2) there are some instances of while(xxx); in the test code, this could cause problems, really we need to
      have some limit on the number of iterations (other than just the test, which may never return false), also the
      loop should have some sort of sleep(100msec) (whatever time) in order to limit cpu use.

      Attachments

        1. ZOOKEEPER-413.patch
          4 kB
          Patrick D. Hunt

        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: