Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ZOOKEEPER-2692: Fix race condition in testWatchAutoResetWithPending
We occasionally run into an issue with testWatchAutoResetWithPending where we get flaky test behavior due to not being able to reliably predict when the client has received notification from each watch that may be fired (perhaps due to resource contention on the box running the tests). This patch works around that by waiting for a one second quiet period, after which we can more safely assume all watches that will be fired have been fired. Here is an example of the test failure: https://builds.apache.org/job/ZooKeeper-trunk-jdk8/935/ Author: Abraham Fine <[email protected]> Reviewers: Michael Han <[email protected]> Closes apache#171 from afine/ZOOKEEPER-2692
- Loading branch information