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

flakey test in StandaloneDisabledTest.startSingleServerTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.4.6
    • 3.5.0
    • tests
    • 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. ZOOKEEPER-1870.patch
          7 kB
          Flavio Paiva Junqueira
        2. ZOOKEEPER-1870.patch
          7 kB
          Michi Mutsuzaki
        3. test.log
          170 kB
          Raúl Gutiérrez Segalés
        4. ZOOKEEPER-1870.patch
          5 kB
          Michi Mutsuzaki

        Issue Links

          Activity

            People

              helen Helen Hastings
              phunt Patrick D. Hunt
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: