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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: c client, tests
    • Labels:
      None
    • Hadoop Flags:
      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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: