{"action":"created","issue":{"url":"https://api.github.com/repos/shayhatsor/zookeeper/issues/4","labels_url":"https://api.github.com/repos/shayhatsor/zookeeper/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/shayhatsor/zookeeper/issues/4/comments","events_url":"https://api.github.com/repos/shayhatsor/zookeeper/issues/4/events","html_url":"https://github.com/shayhatsor/zookeeper/issues/4","id":129161486,"number":4,"title":"ZooKeeperNetEx.Recipes WriteLock allows multiple clients to obtain lock to the same dir simultaneously","user":{"login":"nj4x","id":2019243,"avatar_url":"https://avatars.githubusercontent.com/u/2019243?v=3","gravatar_id":"","url":"https://api.github.com/users/nj4x","html_url":"https://github.com/nj4x","followers_url":"https://api.github.com/users/nj4x/followers","following_url":"https://api.github.com/users/nj4x/following{/other_user}","gists_url":"https://api.github.com/users/nj4x/gists{/gist_id}","starred_url":"https://api.github.com/users/nj4x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nj4x/subscriptions","organizations_url":"https://api.github.com/users/nj4x/orgs","repos_url":"https://api.github.com/users/nj4x/repos","events_url":"https://api.github.com/users/nj4x/events{/privacy}","received_events_url":"https://api.github.com/users/nj4x/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shayhatsor/zookeeper/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"shayhatsor","id":12084632,"avatar_url":"https://avatars.githubusercontent.com/u/12084632?v=3","gravatar_id":"","url":"https://api.github.com/users/shayhatsor","html_url":"https://github.com/shayhatsor","followers_url":"https://api.github.com/users/shayhatsor/followers","following_url":"https://api.github.com/users/shayhatsor/following{/other_user}","gists_url":"https://api.github.com/users/shayhatsor/gists{/gist_id}","starred_url":"https://api.github.com/users/shayhatsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shayhatsor/subscriptions","organizations_url":"https://api.github.com/users/shayhatsor/orgs","repos_url":"https://api.github.com/users/shayhatsor/repos","events_url":"https://api.github.com/users/shayhatsor/events{/privacy}","received_events_url":"https://api.github.com/users/shayhatsor/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/shayhatsor/zookeeper/milestones/3","html_url":"https://github.com/shayhatsor/zookeeper/milestones/3.4.7.4","labels_url":"https://api.github.com/repos/shayhatsor/zookeeper/milestones/3/labels","id":1546783,"number":3,"title":"3.4.7.4","description":null,"creator":{"login":"shayhatsor","id":12084632,"avatar_url":"https://avatars.githubusercontent.com/u/12084632?v=3","gravatar_id":"","url":"https://api.github.com/users/shayhatsor","html_url":"https://github.com/shayhatsor","followers_url":"https://api.github.com/users/shayhatsor/followers","following_url":"https://api.github.com/users/shayhatsor/following{/other_user}","gists_url":"https://api.github.com/users/shayhatsor/gists{/gist_id}","starred_url":"https://api.github.com/users/shayhatsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shayhatsor/subscriptions","organizations_url":"https://api.github.com/users/shayhatsor/orgs","repos_url":"https://api.github.com/users/shayhatsor/repos","events_url":"https://api.github.com/users/shayhatsor/events{/privacy}","received_events_url":"https://api.github.com/users/shayhatsor/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-01-27T17:32:39Z","updated_at":"2016-01-27T17:32:39Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-01-27T14:36:12Z","updated_at":"2016-01-27T17:32:49Z","closed_at":null,"body":"Pls find issue reproducing gist here https://gist.github.com/nj4x/a13c7b8c4362ded9cedc"},"comment":{"url":"https://api.github.com/repos/shayhatsor/zookeeper/issues/comments/175758982","html_url":"https://github.com/shayhatsor/zookeeper/issues/4#issuecomment-175758982","issue_url":"https://api.github.com/repos/shayhatsor/zookeeper/issues/4","id":175758982,"user":{"login":"shayhatsor","id":12084632,"avatar_url":"https://avatars.githubusercontent.com/u/12084632?v=3","gravatar_id":"","url":"https://api.github.com/users/shayhatsor","html_url":"https://github.com/shayhatsor","followers_url":"https://api.github.com/users/shayhatsor/followers","following_url":"https://api.github.com/users/shayhatsor/following{/other_user}","gists_url":"https://api.github.com/users/shayhatsor/gists{/gist_id}","starred_url":"https://api.github.com/users/shayhatsor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shayhatsor/subscriptions","organizations_url":"https://api.github.com/users/shayhatsor/orgs","repos_url":"https://api.github.com/users/shayhatsor/repos","events_url":"https://api.github.com/users/shayhatsor/events{/privacy}","received_events_url":"https://api.github.com/users/shayhatsor/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T17:32:49Z","updated_at":"2016-01-27T17:32:49Z","body":"I see your point. that's a bug.\r\nNote that [this](https://zookeeper.apache.org/doc/r3.1.2/recipes.html) is a very rough guideline to implementing the recipes. I've tried to follow the official implementation which is [here](https://github.com/apache/zookeeper/tree/release-3.4.7/src/recipes/lock/src/java/org/apache/zookeeper/recipes/lock).\r\nBy the way, there's absolutely a bug in the implementation of `LockListener` - its methods don't return Task. Thanks for pointing this out, I'll see what I've missed from the java implementation. There could be a possibility this bug also exists there, but probably not..."}}