Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-210

Unit tests using server.close() are fragile.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.8.0
    • None
    • None

    Description

      Unit tests that use the pattern of server.close() then recreating a new TestingServer instance to simulate connection loss are fragile and will fail periodically.

      This appears to be due to a ZooKeeper bug (https://issues.apache.org/jira/browse/ZOOKEEPER-832). It can be worked around by using the server.restart() method instead of close and recreate.

      All unit tests need to be investigated and fixed as necessary.

      Attachments

        Activity

          People

            cammckenzie Cam McKenzie
            cammckenzie Cam McKenzie
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: