Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
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.