{"action":"created","comment":{"url":"https://api.github.com/repos/linkedin/parseq/pulls/comments/50930433","id":50930433,"diff_hunk":"@@ -0,0 +1,63 @@\n+/*\n+ * Copyright 2016 LinkedIn, Inc\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\"); you may not\n+ * use this file except in compliance with the License. You may obtain a copy of\n+ * the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the\n+ * License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+package com.linkedin.parseq.zk.client;\n+\n+import com.linkedin.parseq.Task;\n+import com.linkedin.parseq.promise.Promises;\n+import java.util.HashMap;\n+import java.util.Map;\n+import java.util.concurrent.ConcurrentHashMap;\n+import java.util.concurrent.ConcurrentMap;\n+\n+\n+/**\n+ * A {@link Map} that is shared across {@link Task}s belong to the same plan.\n+ *\n+ * @author Ang Xu\n+ */\n+public final class PlanLocal {","path":"contrib/parseq-zk-client/src/main/java/com/linkedin/parseq/zk/client/PlanLocal.java","position":32,"original_position":32,"commit_id":"8a81a5622851cb88b9032726bd1ad22c93656d6f","original_commit_id":"8a81a5622851cb88b9032726bd1ad22c93656d6f","user":{"login":"zhenkai","id":447715,"avatar_url":"https://avatars.githubusercontent.com/u/447715?v=3","gravatar_id":"","url":"https://api.github.com/users/zhenkai","html_url":"https://github.com/zhenkai","followers_url":"https://api.github.com/users/zhenkai/followers","following_url":"https://api.github.com/users/zhenkai/following{/other_user}","gists_url":"https://api.github.com/users/zhenkai/gists{/gist_id}","starred_url":"https://api.github.com/users/zhenkai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhenkai/subscriptions","organizations_url":"https://api.github.com/users/zhenkai/orgs","repos_url":"https://api.github.com/users/zhenkai/repos","events_url":"https://api.github.com/users/zhenkai/events{/privacy}","received_events_url":"https://api.github.com/users/zhenkai/received_events","type":"User","site_admin":false},"body":"a more general question is why does the operations return task when the operations are not async in nature? It seems to be a wrong place to create task.","created_at":"2016-01-27T01:31:55Z","updated_at":"2016-01-27T01:31:55Z","html_url":"https://github.com/linkedin/parseq/pull/68#discussion_r50930433","pull_request_url":"https://api.github.com/repos/linkedin/parseq/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/linkedin/parseq/pulls/comments/50930433"},"html":{"href":"https://github.com/linkedin/parseq/pull/68#discussion_r50930433"},"pull_request":{"href":"https://api.github.com/repos/linkedin/parseq/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/linkedin/parseq/pulls/68","id":57117992,"html_url":"https://github.com/linkedin/parseq/pull/68","diff_url":"https://github.com/linkedin/parseq/pull/68.diff","patch_url":"https://github.com/linkedin/parseq/pull/68.patch","issue_url":"https://api.github.com/repos/linkedin/parseq/issues/68","number":68,"state":"open","locked":false,"title":"Initial commit for Parseq zookeeper client","user":{"login":"angxu","id":5187448,"avatar_url":"https://avatars.githubusercontent.com/u/5187448?v=3","gravatar_id":"","url":"https://api.github.com/users/angxu","html_url":"https://github.com/angxu","followers_url":"https://api.github.com/users/angxu/followers","following_url":"https://api.github.com/users/angxu/following{/other_user}","gists_url":"https://api.github.com/users/angxu/gists{/gist_id}","starred_url":"https://api.github.com/users/angxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angxu/subscriptions","organizations_url":"https://api.github.com/users/angxu/orgs","repos_url":"https://api.github.com/users/angxu/repos","events_url":"https://api.github.com/users/angxu/events{/privacy}","received_events_url":"https://api.github.com/users/angxu/received_events","type":"User","site_admin":false},"body":"A thin wrapper around vanilla zookeeper client to facilitate the usage of Parseq. Also implemented a distributed lock based on http://zookeeper.apache.org/doc/trunk/recipes.html#Shared+Locks. ","created_at":"2016-01-25T19:30:28Z","updated_at":"2016-01-27T01:31:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4dd6d90f7722c0f35fab00ef6b75821ed2c2c685","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/linkedin/parseq/pulls/68/commits","review_comments_url":"https://api.github.com/repos/linkedin/parseq/pulls/68/comments","review_comment_url":"https://api.github.com/repos/linkedin/parseq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/linkedin/parseq/issues/68/comments","statuses_url":"https://api.github.com/repos/linkedin/parseq/statuses/8a81a5622851cb88b9032726bd1ad22c93656d6f","head":{"label":"angxu:parseq-zk-client","ref":"parseq-zk-client","sha":"8a81a5622851cb88b9032726bd1ad22c93656d6f","user":{"login":"angxu","id":5187448,"avatar_url":"https://avatars.githubusercontent.com/u/5187448?v=3","gravatar_id":"","url":"https://api.github.com/users/angxu","html_url":"https://github.com/angxu","followers_url":"https://api.github.com/users/angxu/followers","following_url":"https://api.github.com/users/angxu/following{/other_user}","gists_url":"https://api.github.com/users/angxu/gists{/gist_id}","starred_url":"https://api.github.com/users/angxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angxu/subscriptions","organizations_url":"https://api.github.com/users/angxu/orgs","repos_url":"https://api.github.com/users/angxu/repos","events_url":"https://api.github.com/users/angxu/events{/privacy}","received_events_url":"https://api.github.com/users/angxu/received_events","type":"User","site_admin":false},"repo":{"id":50374756,"name":"parseq","full_name":"angxu/parseq","owner":{"login":"angxu","id":5187448,"avatar_url":"https://avatars.githubusercontent.com/u/5187448?v=3","gravatar_id":"","url":"https://api.github.com/users/angxu","html_url":"https://github.com/angxu","followers_url":"https://api.github.com/users/angxu/followers","following_url":"https://api.github.com/users/angxu/following{/other_user}","gists_url":"https://api.github.com/users/angxu/gists{/gist_id}","starred_url":"https://api.github.com/users/angxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angxu/subscriptions","organizations_url":"https://api.github.com/users/angxu/orgs","repos_url":"https://api.github.com/users/angxu/repos","events_url":"https://api.github.com/users/angxu/events{/privacy}","received_events_url":"https://api.github.com/users/angxu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/angxu/parseq","description":"Asynchronous Java made easier","fork":true,"url":"https://api.github.com/repos/angxu/parseq","forks_url":"https://api.github.com/repos/angxu/parseq/forks","keys_url":"https://api.github.com/repos/angxu/parseq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angxu/parseq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angxu/parseq/teams","hooks_url":"https://api.github.com/repos/angxu/parseq/hooks","issue_events_url":"https://api.github.com/repos/angxu/parseq/issues/events{/number}","events_url":"https://api.github.com/repos/angxu/parseq/events","assignees_url":"https://api.github.com/repos/angxu/parseq/assignees{/user}","branches_url":"https://api.github.com/repos/angxu/parseq/branches{/branch}","tags_url":"https://api.github.com/repos/angxu/parseq/tags","blobs_url":"https://api.github.com/repos/angxu/parseq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angxu/parseq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angxu/parseq/git/refs{/sha}","trees_url":"https://api.github.com/repos/angxu/parseq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angxu/parseq/statuses/{sha}","languages_url":"https://api.github.com/repos/angxu/parseq/languages","stargazers_url":"https://api.github.com/repos/angxu/parseq/stargazers","contributors_url":"https://api.github.com/repos/angxu/parseq/contributors","subscribers_url":"https://api.github.com/repos/angxu/parseq/subscribers","subscription_url":"https://api.github.com/repos/angxu/parseq/subscription","commits_url":"https://api.github.com/repos/angxu/parseq/commits{/sha}","git_commits_url":"https://api.github.com/repos/angxu/parseq/git/commits{/sha}","comments_url":"https://api.github.com/repos/angxu/parseq/comments{/number}","issue_comment_url":"https://api.github.com/repos/angxu/parseq/issues/comments{/number}","contents_url":"https://api.github.com/repos/angxu/parseq/contents/{+path}","compare_url":"https://api.github.com/repos/angxu/parseq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angxu/parseq/merges","archive_url":"https://api.github.com/repos/angxu/parseq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angxu/parseq/downloads","issues_url":"https://api.github.com/repos/angxu/parseq/issues{/number}","pulls_url":"https://api.github.com/repos/angxu/parseq/pulls{/number}","milestones_url":"https://api.github.com/repos/angxu/parseq/milestones{/number}","notifications_url":"https://api.github.com/repos/angxu/parseq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angxu/parseq/labels{/name}","releases_url":"https://api.github.com/repos/angxu/parseq/releases{/id}","deployments_url":"https://api.github.com/repos/angxu/parseq/deployments","created_at":"2016-01-25T19:22:37Z","updated_at":"2016-01-25T19:22:39Z","pushed_at":"2016-01-25T19:26:48Z","git_url":"git://github.com/angxu/parseq.git","ssh_url":"git@github.com:angxu/parseq.git","clone_url":"https://github.com/angxu/parseq.git","svn_url":"https://github.com/angxu/parseq","homepage":"","size":2576,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"linkedin:master","ref":"master","sha":"6e29e574ed68c3a2c49b9cbf9ed3d5a4772cd8b1","user":{"login":"linkedin","id":357098,"avatar_url":"https://avatars.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"repo":{"id":5859444,"name":"parseq","full_name":"linkedin/parseq","owner":{"login":"linkedin","id":357098,"avatar_url":"https://avatars.githubusercontent.com/u/357098?v=3","gravatar_id":"","url":"https://api.github.com/users/linkedin","html_url":"https://github.com/linkedin","followers_url":"https://api.github.com/users/linkedin/followers","following_url":"https://api.github.com/users/linkedin/following{/other_user}","gists_url":"https://api.github.com/users/linkedin/gists{/gist_id}","starred_url":"https://api.github.com/users/linkedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linkedin/subscriptions","organizations_url":"https://api.github.com/users/linkedin/orgs","repos_url":"https://api.github.com/users/linkedin/repos","events_url":"https://api.github.com/users/linkedin/events{/privacy}","received_events_url":"https://api.github.com/users/linkedin/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/linkedin/parseq","description":"Asynchronous Java made easier","fork":false,"url":"https://api.github.com/repos/linkedin/parseq","forks_url":"https://api.github.com/repos/linkedin/parseq/forks","keys_url":"https://api.github.com/repos/linkedin/parseq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/linkedin/parseq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/linkedin/parseq/teams","hooks_url":"https://api.github.com/repos/linkedin/parseq/hooks","issue_events_url":"https://api.github.com/repos/linkedin/parseq/issues/events{/number}","events_url":"https://api.github.com/repos/linkedin/parseq/events","assignees_url":"https://api.github.com/repos/linkedin/parseq/assignees{/user}","branches_url":"https://api.github.com/repos/linkedin/parseq/branches{/branch}","tags_url":"https://api.github.com/repos/linkedin/parseq/tags","blobs_url":"https://api.github.com/repos/linkedin/parseq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/linkedin/parseq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/linkedin/parseq/git/refs{/sha}","trees_url":"https://api.github.com/repos/linkedin/parseq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/linkedin/parseq/statuses/{sha}","languages_url":"https://api.github.com/repos/linkedin/parseq/languages","stargazers_url":"https://api.github.com/repos/linkedin/parseq/stargazers","contributors_url":"https://api.github.com/repos/linkedin/parseq/contributors","subscribers_url":"https://api.github.com/repos/linkedin/parseq/subscribers","subscription_url":"https://api.github.com/repos/linkedin/parseq/subscription","commits_url":"https://api.github.com/repos/linkedin/parseq/commits{/sha}","git_commits_url":"https://api.github.com/repos/linkedin/parseq/git/commits{/sha}","comments_url":"https://api.github.com/repos/linkedin/parseq/comments{/number}","issue_comment_url":"https://api.github.com/repos/linkedin/parseq/issues/comments{/number}","contents_url":"https://api.github.com/repos/linkedin/parseq/contents/{+path}","compare_url":"https://api.github.com/repos/linkedin/parseq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/linkedin/parseq/merges","archive_url":"https://api.github.com/repos/linkedin/parseq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/linkedin/parseq/downloads","issues_url":"https://api.github.com/repos/linkedin/parseq/issues{/number}","pulls_url":"https://api.github.com/repos/linkedin/parseq/pulls{/number}","milestones_url":"https://api.github.com/repos/linkedin/parseq/milestones{/number}","notifications_url":"https://api.github.com/repos/linkedin/parseq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/linkedin/parseq/labels{/name}","releases_url":"https://api.github.com/repos/linkedin/parseq/releases{/id}","deployments_url":"https://api.github.com/repos/linkedin/parseq/deployments","created_at":"2012-09-18T16:43:59Z","updated_at":"2016-01-24T11:03:20Z","pushed_at":"2016-01-25T19:30:28Z","git_url":"git://github.com/linkedin/parseq.git","ssh_url":"git@github.com:linkedin/parseq.git","clone_url":"https://github.com/linkedin/parseq.git","svn_url":"https://github.com/linkedin/parseq","homepage":"","size":2868,"stargazers_count":398,"watchers_count":398,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":12,"forks":97,"open_issues":12,"watchers":398,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/linkedin/parseq/pulls/68"},"html":{"href":"https://github.com/linkedin/parseq/pull/68"},"issue":{"href":"https://api.github.com/repos/linkedin/parseq/issues/68"},"comments":{"href":"https://api.github.com/repos/linkedin/parseq/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/linkedin/parseq/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/linkedin/parseq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/linkedin/parseq/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/linkedin/parseq/statuses/8a81a5622851cb88b9032726bd1ad22c93656d6f"}}}}