maoling opened a new pull request #618: ZOOKEEPER-1011:fix Java Barrier Documentation example's race condition issue and polish up the Barrier Documentation URL: https://github.com/apache/zookeeper/pull/618 - This patch fix the race condition of double barrier and avoid the herd effect. - To focus on the core logic and keep the codes short and clean,don't consider some parameters check,connect loss,the timeout for wait ....etc.The thoughtful codes can be found in the implements of `DistributedDoubleBarrier` of `curator-recipes`. - For test,you can change the `QTY` in the barrierTest from small one(1,2,3) to large one(1000,5000,10000),then observer the printed log to check the correctness of this patch. - more details in [ZOOKEEPER-1011](https://issues.apache.org/jira/browse/ZOOKEEPER-1011) .Thanks for [semihsalihoglu](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=semihsalihoglu) reporting this issue.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
