Github user bothejjms commented on the issue:
https://github.com/apache/zookeeper/pull/563
On "pretty reliably" I mean the test has failed for me like 90% of the time
with the original code but the result can differ on different machines since it
is a race condition.
Reproducing race condition in a test is not simple. I am open to
suggestions how to do it reliably. Do you recall any other tests for race
conditions in the test suite?
After the fix the test passed on my machine always. I am not sure yet why
it fails on jenkins.
For me the test takes 40 sec on my VM which is not particularly strong. I
am also not satisfied with this test. I just wanted to prove that the race
condition is there. Instead of the test I could add a description on how to
reproduce and skip permanent testing for it.
---