Github user afine commented on the issue:
https://github.com/apache/zookeeper/pull/402
I think there is a better way to do this. Picking a new port for each test
seems to be a workaround for failing to clean up the resources utilized by a
failing test. It would be better if we cleaned up properly after a test
execution.
Since this is the method we used to fix the test in another branch I think
it is up to the discretion of the committers, but it would be nice to not leak
any resources from our tests.
---