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

flakey test in StandaloneDisabledTest.startSingleServerTest

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 3.4.6
    • Fix Version/s: 3.5.0
    • Component/s: tests
    • Labels:
      None

      Description

      I'm seeing lots of the following failure. Seems like a flakey test (passes every so often).

      junit.framework.AssertionFailedError: client could not connect to reestablished quorum: giving up after 30+ seconds.
      	at org.apache.zookeeper.test.ReconfigTest.testNormalOperation(ReconfigTest.java:143)
      	at org.apache.zookeeper.server.quorum.StandaloneDisabledTest.startSingleServerTest(StandaloneDisabledTest.java:75)
      	at org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
      

      I've found 3 problems:

      1. QuorumCnxManager.Listener.run() leaks the socket depending on when the shutdown flag gets set.
      2. QuorumCnxManager.halt() doesn't wait for the listener to terminate.
      3. QuorumPeer.shuttingDownLE flag doesn't get reset when restarting the leader election.

        Attachments

        1. test.log
          170 kB
          Raul Gutierrez Segales
        2. ZOOKEEPER-1870.patch
          7 kB
          Flavio Junqueira
        3. ZOOKEEPER-1870.patch
          7 kB
          Michi Mutsuzaki
        4. ZOOKEEPER-1870.patch
          5 kB
          Michi Mutsuzaki

          Issue Links

            Activity

              People

              • Assignee:
                helen Helen Hastings
                Reporter:
                phunt Patrick Hunt
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: