You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by "Cameron McKenzie (JIRA)" <ji...@apache.org> on 2015/04/28 04:58:06 UTC

[jira] [Created] (CURATOR-210) Unit tests using server.close() are fragile.

Cameron McKenzie created CURATOR-210:
----------------------------------------

             Summary: Unit tests using server.close() are fragile.
                 Key: CURATOR-210
                 URL: https://issues.apache.org/jira/browse/CURATOR-210
             Project: Apache Curator
          Issue Type: Bug
            Reporter: Cameron McKenzie
            Assignee: Cameron McKenzie


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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)