{"action":"created","comment":{"url":"https://api.github.com/repos/apache/storm/pulls/comments/45505075","id":45505075,"diff_hunk":"@@ -1062,6 +1062,22 @@\n (defn hashmap-to-persistent [^HashMap m]\n   (zipmap (.keySet m) (.values m)))\n \n+(defn retry-on-exception\n+  \"Retries specific function on exception based on retries count\"\n+  [tries task-description f & args]\n+  (let [res (try {:value (apply f args)}\n+              (catch Exception e\n+                (if (= 0 tries)\n+                  (throw e)\n+                  {:exception e})))]","path":"storm-core/src/clj/backtype/storm/util.clj","position":11,"original_position":11,"commit_id":"711e36fafcac33f4fb7238001ea8bc678fab2d56","original_commit_id":"711e36fafcac33f4fb7238001ea8bc678fab2d56","user":{"login":"d2r","id":905298,"avatar_url":"https://avatars.githubusercontent.com/u/905298?v=3","gravatar_id":"","url":"https://api.github.com/users/d2r","html_url":"https://github.com/d2r","followers_url":"https://api.github.com/users/d2r/followers","following_url":"https://api.github.com/users/d2r/following{/other_user}","gists_url":"https://api.github.com/users/d2r/gists{/gist_id}","starred_url":"https://api.github.com/users/d2r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/d2r/subscriptions","organizations_url":"https://api.github.com/users/d2r/orgs","repos_url":"https://api.github.com/users/d2r/repos","events_url":"https://api.github.com/users/d2r/events{/privacy}","received_events_url":"https://api.github.com/users/d2r/received_events","type":"User","site_admin":false},"body":"Probably should check that `tries` is not `pos?`, in case of crazy values of `tries`.","created_at":"2015-11-20T19:06:19Z","updated_at":"2015-11-20T19:06:19Z","html_url":"https://github.com/apache/storm/pull/838#discussion_r45505075","pull_request_url":"https://api.github.com/repos/apache/storm/pulls/838","_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/comments/45505075"},"html":{"href":"https://github.com/apache/storm/pull/838#discussion_r45505075"},"pull_request":{"href":"https://api.github.com/repos/apache/storm/pulls/838"}}},"pull_request":{"url":"https://api.github.com/repos/apache/storm/pulls/838","id":49329607,"html_url":"https://github.com/apache/storm/pull/838","diff_url":"https://github.com/apache/storm/pull/838.diff","patch_url":"https://github.com/apache/storm/pull/838.patch","issue_url":"https://api.github.com/repos/apache/storm/issues/838","number":838,"state":"open","locked":false,"title":"[STORM-885] Heartbeat Server (Pacemaker)","user":{"login":"knusbaum","id":1819836,"avatar_url":"https://avatars.githubusercontent.com/u/1819836?v=3","gravatar_id":"","url":"https://api.github.com/users/knusbaum","html_url":"https://github.com/knusbaum","followers_url":"https://api.github.com/users/knusbaum/followers","following_url":"https://api.github.com/users/knusbaum/following{/other_user}","gists_url":"https://api.github.com/users/knusbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/knusbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knusbaum/subscriptions","organizations_url":"https://api.github.com/users/knusbaum/orgs","repos_url":"https://api.github.com/users/knusbaum/repos","events_url":"https://api.github.com/users/knusbaum/events{/privacy}","received_events_url":"https://api.github.com/users/knusbaum/received_events","type":"User","site_admin":false},"body":"This pull request redirects worker heartbeats away from Zookeeper and into a new server, 'Pacemaker'.\r\n\r\nThe redirection is accomplished by making `ClusterState` pluggable through the `ClusterStateFactory` interface.\r\n\r\nBy default, Pacemaker is not enabled. It can be enabled by setting `storm.cluster.state.store` from its default value of `\"backtype.storm.cluster_state.zookeeper_state_factory\"` to `\"org.apache.storm.pacemaker.pacemaker_state_factory\"`\r\n\r\nPacemaker includes both digest-based and kerberos-based security, but it is primitive.\r\n\r\nRight now Pacemaker is not HA, but currently if Pacemaker fails, Nimbus will NOT start killing and reassigning workers, so Pacemaker going down won't bring down a cluster. It does need to be brought back up before new jobs can be submitted, though.","created_at":"2015-10-30T22:28:10Z","updated_at":"2015-11-20T19:06:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5b8d1b0a838a5bc91ee3052c05086c52c12b256","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/storm/pulls/838/commits","review_comments_url":"https://api.github.com/repos/apache/storm/pulls/838/comments","review_comment_url":"https://api.github.com/repos/apache/storm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/storm/issues/838/comments","statuses_url":"https://api.github.com/repos/apache/storm/statuses/711e36fafcac33f4fb7238001ea8bc678fab2d56","head":{"label":"knusbaum:STORM-855","ref":"STORM-855","sha":"711e36fafcac33f4fb7238001ea8bc678fab2d56","user":{"login":"knusbaum","id":1819836,"avatar_url":"https://avatars.githubusercontent.com/u/1819836?v=3","gravatar_id":"","url":"https://api.github.com/users/knusbaum","html_url":"https://github.com/knusbaum","followers_url":"https://api.github.com/users/knusbaum/followers","following_url":"https://api.github.com/users/knusbaum/following{/other_user}","gists_url":"https://api.github.com/users/knusbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/knusbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knusbaum/subscriptions","organizations_url":"https://api.github.com/users/knusbaum/orgs","repos_url":"https://api.github.com/users/knusbaum/repos","events_url":"https://api.github.com/users/knusbaum/events{/privacy}","received_events_url":"https://api.github.com/users/knusbaum/received_events","type":"User","site_admin":false},"repo":{"id":20285444,"name":"incubator-storm","full_name":"knusbaum/incubator-storm","owner":{"login":"knusbaum","id":1819836,"avatar_url":"https://avatars.githubusercontent.com/u/1819836?v=3","gravatar_id":"","url":"https://api.github.com/users/knusbaum","html_url":"https://github.com/knusbaum","followers_url":"https://api.github.com/users/knusbaum/followers","following_url":"https://api.github.com/users/knusbaum/following{/other_user}","gists_url":"https://api.github.com/users/knusbaum/gists{/gist_id}","starred_url":"https://api.github.com/users/knusbaum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knusbaum/subscriptions","organizations_url":"https://api.github.com/users/knusbaum/orgs","repos_url":"https://api.github.com/users/knusbaum/repos","events_url":"https://api.github.com/users/knusbaum/events{/privacy}","received_events_url":"https://api.github.com/users/knusbaum/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knusbaum/incubator-storm","description":"Mirror of Apache Storm","fork":true,"url":"https://api.github.com/repos/knusbaum/incubator-storm","forks_url":"https://api.github.com/repos/knusbaum/incubator-storm/forks","keys_url":"https://api.github.com/repos/knusbaum/incubator-storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knusbaum/incubator-storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knusbaum/incubator-storm/teams","hooks_url":"https://api.github.com/repos/knusbaum/incubator-storm/hooks","issue_events_url":"https://api.github.com/repos/knusbaum/incubator-storm/issues/events{/number}","events_url":"https://api.github.com/repos/knusbaum/incubator-storm/events","assignees_url":"https://api.github.com/repos/knusbaum/incubator-storm/assignees{/user}","branches_url":"https://api.github.com/repos/knusbaum/incubator-storm/branches{/branch}","tags_url":"https://api.github.com/repos/knusbaum/incubator-storm/tags","blobs_url":"https://api.github.com/repos/knusbaum/incubator-storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knusbaum/incubator-storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knusbaum/incubator-storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/knusbaum/incubator-storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knusbaum/incubator-storm/statuses/{sha}","languages_url":"https://api.github.com/repos/knusbaum/incubator-storm/languages","stargazers_url":"https://api.github.com/repos/knusbaum/incubator-storm/stargazers","contributors_url":"https://api.github.com/repos/knusbaum/incubator-storm/contributors","subscribers_url":"https://api.github.com/repos/knusbaum/incubator-storm/subscribers","subscription_url":"https://api.github.com/repos/knusbaum/incubator-storm/subscription","commits_url":"https://api.github.com/repos/knusbaum/incubator-storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/knusbaum/incubator-storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/knusbaum/incubator-storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/knusbaum/incubator-storm/issues/comments{/number}","contents_url":"https://api.github.com/repos/knusbaum/incubator-storm/contents/{+path}","compare_url":"https://api.github.com/repos/knusbaum/incubator-storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knusbaum/incubator-storm/merges","archive_url":"https://api.github.com/repos/knusbaum/incubator-storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knusbaum/incubator-storm/downloads","issues_url":"https://api.github.com/repos/knusbaum/incubator-storm/issues{/number}","pulls_url":"https://api.github.com/repos/knusbaum/incubator-storm/pulls{/number}","milestones_url":"https://api.github.com/repos/knusbaum/incubator-storm/milestones{/number}","notifications_url":"https://api.github.com/repos/knusbaum/incubator-storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knusbaum/incubator-storm/labels{/name}","releases_url":"https://api.github.com/repos/knusbaum/incubator-storm/releases{/id}","created_at":"2014-05-29T07:12:19Z","updated_at":"2015-04-07T16:27:45Z","pushed_at":"2015-11-19T17:31:57Z","git_url":"git://github.com/knusbaum/incubator-storm.git","ssh_url":"git@github.com:knusbaum/incubator-storm.git","clone_url":"https://github.com/knusbaum/incubator-storm.git","svn_url":"https://github.com/knusbaum/incubator-storm","homepage":null,"size":24029,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"77015f073e22975e81a9a673a7cd203167c3b3ad","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":14135470,"name":"storm","full_name":"apache/storm","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/storm","description":"Mirror of Apache Storm","fork":false,"url":"https://api.github.com/repos/apache/storm","forks_url":"https://api.github.com/repos/apache/storm/forks","keys_url":"https://api.github.com/repos/apache/storm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/storm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/storm/teams","hooks_url":"https://api.github.com/repos/apache/storm/hooks","issue_events_url":"https://api.github.com/repos/apache/storm/issues/events{/number}","events_url":"https://api.github.com/repos/apache/storm/events","assignees_url":"https://api.github.com/repos/apache/storm/assignees{/user}","branches_url":"https://api.github.com/repos/apache/storm/branches{/branch}","tags_url":"https://api.github.com/repos/apache/storm/tags","blobs_url":"https://api.github.com/repos/apache/storm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/storm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/storm/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/storm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/storm/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/storm/languages","stargazers_url":"https://api.github.com/repos/apache/storm/stargazers","contributors_url":"https://api.github.com/repos/apache/storm/contributors","subscribers_url":"https://api.github.com/repos/apache/storm/subscribers","subscription_url":"https://api.github.com/repos/apache/storm/subscription","commits_url":"https://api.github.com/repos/apache/storm/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/storm/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/storm/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/storm/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/storm/contents/{+path}","compare_url":"https://api.github.com/repos/apache/storm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/storm/merges","archive_url":"https://api.github.com/repos/apache/storm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/storm/downloads","issues_url":"https://api.github.com/repos/apache/storm/issues{/number}","pulls_url":"https://api.github.com/repos/apache/storm/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/storm/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/storm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/storm/labels{/name}","releases_url":"https://api.github.com/repos/apache/storm/releases{/id}","created_at":"2013-11-05T08:00:14Z","updated_at":"2015-11-20T02:55:58Z","pushed_at":"2015-11-20T19:05:40Z","git_url":"git://github.com/apache/storm.git","ssh_url":"git@github.com:apache/storm.git","clone_url":"https://github.com/apache/storm.git","svn_url":"https://github.com/apache/storm","homepage":null,"size":153724,"stargazers_count":2561,"watchers_count":2561,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":1899,"mirror_url":"git://git.apache.org/incubator-storm.git","open_issues_count":90,"forks":1899,"open_issues":90,"watchers":2561,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/storm/pulls/838"},"html":{"href":"https://github.com/apache/storm/pull/838"},"issue":{"href":"https://api.github.com/repos/apache/storm/issues/838"},"comments":{"href":"https://api.github.com/repos/apache/storm/issues/838/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/storm/pulls/838/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/storm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/storm/pulls/838/commits"},"statuses":{"href":"https://api.github.com/repos/apache/storm/statuses/711e36fafcac33f4fb7238001ea8bc678fab2d56"}}}}