{"action":"created","comment":{"url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/comments/85432897","pull_request_review_id":6150975,"id":85432897,"diff_hunk":"@@ -0,0 +1,182 @@\n+package org.corfudb.infrastructure;\n+\n+import lombok.extern.slf4j.Slf4j;\n+import org.corfudb.runtime.CorfuRuntime;\n+import org.corfudb.runtime.clients.BaseClient;\n+import org.corfudb.runtime.clients.IClientRouter;\n+import org.corfudb.runtime.view.Layout;\n+\n+import java.util.Arrays;\n+import java.util.HashMap;\n+import java.util.concurrent.CompletableFuture;\n+\n+/**\n+ * Simple Polling policy.\n+ * Every node polls every other node.\n+ * <p>\n+ * Failure Condition:\n+ * Considers failure if server a node does not respond to the ping\n+ * more than 2 times in a row.\n+ * <p>\n+ * Created by zlokhandwala on 9/29/16.\n+ */\n+@Slf4j\n+public class PeriodicPollPolicy implements IFailureDetectorPolicy {\n+\n+    private CorfuRuntime corfuRuntime;","path":"src/main/java/org/corfudb/infrastructure/PeriodicPollPolicy.java","position":26,"original_position":26,"commit_id":"2d37d03c0a0b35ad75e3d34173e463087012401e","original_commit_id":"2d37d03c0a0b35ad75e3d34173e463087012401e","user":{"login":"zalokhan","id":10751367,"avatar_url":"https://avatars.githubusercontent.com/u/10751367?v=3","gravatar_id":"","url":"https://api.github.com/users/zalokhan","html_url":"https://github.com/zalokhan","followers_url":"https://api.github.com/users/zalokhan/followers","following_url":"https://api.github.com/users/zalokhan/following{/other_user}","gists_url":"https://api.github.com/users/zalokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zalokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalokhan/subscriptions","organizations_url":"https://api.github.com/users/zalokhan/orgs","repos_url":"https://api.github.com/users/zalokhan/repos","events_url":"https://api.github.com/users/zalokhan/events{/privacy}","received_events_url":"https://api.github.com/users/zalokhan/received_events","type":"User","site_admin":false},"body":"No. Ill move it","created_at":"2016-10-27T21:36:51Z","updated_at":"2016-10-27T21:36:51Z","html_url":"https://github.com/CorfuDB/CorfuDB/pull/255#discussion_r85432897","pull_request_url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/comments/85432897"},"html":{"href":"https://github.com/CorfuDB/CorfuDB/pull/255#discussion_r85432897"},"pull_request":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255","id":91277898,"html_url":"https://github.com/CorfuDB/CorfuDB/pull/255","diff_url":"https://github.com/CorfuDB/CorfuDB/pull/255.diff","patch_url":"https://github.com/CorfuDB/CorfuDB/pull/255.patch","issue_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/255","number":255,"state":"open","locked":false,"title":"Failure Detection Policy","user":{"login":"zalokhan","id":10751367,"avatar_url":"https://avatars.githubusercontent.com/u/10751367?v=3","gravatar_id":"","url":"https://api.github.com/users/zalokhan","html_url":"https://github.com/zalokhan","followers_url":"https://api.github.com/users/zalokhan/followers","following_url":"https://api.github.com/users/zalokhan/following{/other_user}","gists_url":"https://api.github.com/users/zalokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zalokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalokhan/subscriptions","organizations_url":"https://api.github.com/users/zalokhan/orgs","repos_url":"https://api.github.com/users/zalokhan/repos","events_url":"https://api.github.com/users/zalokhan/events{/privacy}","received_events_url":"https://api.github.com/users/zalokhan/received_events","type":"User","site_admin":false},"body":"PeriodicPollingPolicy added.\r\nexecutePolicy : Pings all the servers in the layout once and updates their status.\r\nMarks them failed if pings fail more than 2 times in a row.\r\n\r\nget ServerStatus : Fetches the latest server status.\r\nThis resets the status of the failed servers so that they are not shown in the next result. Thus a failed node will only appear once in the result after failedPollLimit which is 3 polls by default.","created_at":"2016-10-27T20:48:43Z","updated_at":"2016-10-27T21:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6bf5da970b9fec960e2ab97f0a7a96c24eaf566c","assignee":{"login":"zalokhan","id":10751367,"avatar_url":"https://avatars.githubusercontent.com/u/10751367?v=3","gravatar_id":"","url":"https://api.github.com/users/zalokhan","html_url":"https://github.com/zalokhan","followers_url":"https://api.github.com/users/zalokhan/followers","following_url":"https://api.github.com/users/zalokhan/following{/other_user}","gists_url":"https://api.github.com/users/zalokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zalokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalokhan/subscriptions","organizations_url":"https://api.github.com/users/zalokhan/orgs","repos_url":"https://api.github.com/users/zalokhan/repos","events_url":"https://api.github.com/users/zalokhan/events{/privacy}","received_events_url":"https://api.github.com/users/zalokhan/received_events","type":"User","site_admin":false},"assignees":[{"login":"zalokhan","id":10751367,"avatar_url":"https://avatars.githubusercontent.com/u/10751367?v=3","gravatar_id":"","url":"https://api.github.com/users/zalokhan","html_url":"https://github.com/zalokhan","followers_url":"https://api.github.com/users/zalokhan/followers","following_url":"https://api.github.com/users/zalokhan/following{/other_user}","gists_url":"https://api.github.com/users/zalokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zalokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalokhan/subscriptions","organizations_url":"https://api.github.com/users/zalokhan/orgs","repos_url":"https://api.github.com/users/zalokhan/repos","events_url":"https://api.github.com/users/zalokhan/events{/privacy}","received_events_url":"https://api.github.com/users/zalokhan/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/CorfuDB/CorfuDB/milestones/1","html_url":"https://github.com/CorfuDB/CorfuDB/milestones/v1.0%20Release","labels_url":"https://api.github.com/repos/CorfuDB/CorfuDB/milestones/1/labels","id":2048118,"number":1,"title":"v1.0 Release","description":"This is the feature complete milestone for version 1.0.\r\n\r\n1.       Check pointing / disaster recovery\r\n2.       Security for Corfu (> TLS 1.1 and AAA)\r\n3.       Runtime Metrics/Stats\r\n4.       Corfu command line interface\r\n5.       Range indexes \r\n6.       Failure Detector\r\n7.       Lifecycle Management\r\n8.       Data checksum","creator":{"login":"no2chem","id":6496984,"avatar_url":"https://avatars.githubusercontent.com/u/6496984?v=3","gravatar_id":"","url":"https://api.github.com/users/no2chem","html_url":"https://github.com/no2chem","followers_url":"https://api.github.com/users/no2chem/followers","following_url":"https://api.github.com/users/no2chem/following{/other_user}","gists_url":"https://api.github.com/users/no2chem/gists{/gist_id}","starred_url":"https://api.github.com/users/no2chem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/no2chem/subscriptions","organizations_url":"https://api.github.com/users/no2chem/orgs","repos_url":"https://api.github.com/users/no2chem/repos","events_url":"https://api.github.com/users/no2chem/events{/privacy}","received_events_url":"https://api.github.com/users/no2chem/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":3,"state":"open","created_at":"2016-10-04T22:17:52Z","updated_at":"2016-10-27T20:48:43Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255/commits","review_comments_url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255/comments","review_comment_url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/255/comments","statuses_url":"https://api.github.com/repos/CorfuDB/CorfuDB/statuses/2d37d03c0a0b35ad75e3d34173e463087012401e","head":{"label":"zalokhan:failureDetector/detectorPolicy","ref":"failureDetector/detectorPolicy","sha":"2d37d03c0a0b35ad75e3d34173e463087012401e","user":{"login":"zalokhan","id":10751367,"avatar_url":"https://avatars.githubusercontent.com/u/10751367?v=3","gravatar_id":"","url":"https://api.github.com/users/zalokhan","html_url":"https://github.com/zalokhan","followers_url":"https://api.github.com/users/zalokhan/followers","following_url":"https://api.github.com/users/zalokhan/following{/other_user}","gists_url":"https://api.github.com/users/zalokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zalokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalokhan/subscriptions","organizations_url":"https://api.github.com/users/zalokhan/orgs","repos_url":"https://api.github.com/users/zalokhan/repos","events_url":"https://api.github.com/users/zalokhan/events{/privacy}","received_events_url":"https://api.github.com/users/zalokhan/received_events","type":"User","site_admin":false},"repo":{"id":66982229,"name":"CorfuDB","full_name":"zalokhan/CorfuDB","owner":{"login":"zalokhan","id":10751367,"avatar_url":"https://avatars.githubusercontent.com/u/10751367?v=3","gravatar_id":"","url":"https://api.github.com/users/zalokhan","html_url":"https://github.com/zalokhan","followers_url":"https://api.github.com/users/zalokhan/followers","following_url":"https://api.github.com/users/zalokhan/following{/other_user}","gists_url":"https://api.github.com/users/zalokhan/gists{/gist_id}","starred_url":"https://api.github.com/users/zalokhan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalokhan/subscriptions","organizations_url":"https://api.github.com/users/zalokhan/orgs","repos_url":"https://api.github.com/users/zalokhan/repos","events_url":"https://api.github.com/users/zalokhan/events{/privacy}","received_events_url":"https://api.github.com/users/zalokhan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zalokhan/CorfuDB","description":"A cluster consistency platform","fork":true,"url":"https://api.github.com/repos/zalokhan/CorfuDB","forks_url":"https://api.github.com/repos/zalokhan/CorfuDB/forks","keys_url":"https://api.github.com/repos/zalokhan/CorfuDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zalokhan/CorfuDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zalokhan/CorfuDB/teams","hooks_url":"https://api.github.com/repos/zalokhan/CorfuDB/hooks","issue_events_url":"https://api.github.com/repos/zalokhan/CorfuDB/issues/events{/number}","events_url":"https://api.github.com/repos/zalokhan/CorfuDB/events","assignees_url":"https://api.github.com/repos/zalokhan/CorfuDB/assignees{/user}","branches_url":"https://api.github.com/repos/zalokhan/CorfuDB/branches{/branch}","tags_url":"https://api.github.com/repos/zalokhan/CorfuDB/tags","blobs_url":"https://api.github.com/repos/zalokhan/CorfuDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zalokhan/CorfuDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zalokhan/CorfuDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/zalokhan/CorfuDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zalokhan/CorfuDB/statuses/{sha}","languages_url":"https://api.github.com/repos/zalokhan/CorfuDB/languages","stargazers_url":"https://api.github.com/repos/zalokhan/CorfuDB/stargazers","contributors_url":"https://api.github.com/repos/zalokhan/CorfuDB/contributors","subscribers_url":"https://api.github.com/repos/zalokhan/CorfuDB/subscribers","subscription_url":"https://api.github.com/repos/zalokhan/CorfuDB/subscription","commits_url":"https://api.github.com/repos/zalokhan/CorfuDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/zalokhan/CorfuDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/zalokhan/CorfuDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/zalokhan/CorfuDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/zalokhan/CorfuDB/contents/{+path}","compare_url":"https://api.github.com/repos/zalokhan/CorfuDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zalokhan/CorfuDB/merges","archive_url":"https://api.github.com/repos/zalokhan/CorfuDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zalokhan/CorfuDB/downloads","issues_url":"https://api.github.com/repos/zalokhan/CorfuDB/issues{/number}","pulls_url":"https://api.github.com/repos/zalokhan/CorfuDB/pulls{/number}","milestones_url":"https://api.github.com/repos/zalokhan/CorfuDB/milestones{/number}","notifications_url":"https://api.github.com/repos/zalokhan/CorfuDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zalokhan/CorfuDB/labels{/name}","releases_url":"https://api.github.com/repos/zalokhan/CorfuDB/releases{/id}","deployments_url":"https://api.github.com/repos/zalokhan/CorfuDB/deployments","created_at":"2016-08-30T22:27:02Z","updated_at":"2016-08-30T22:27:04Z","pushed_at":"2016-10-27T21:26:46Z","git_url":"git://github.com/zalokhan/CorfuDB.git","ssh_url":"git@github.com:zalokhan/CorfuDB.git","clone_url":"https://github.com/zalokhan/CorfuDB.git","svn_url":"https://github.com/zalokhan/CorfuDB","homepage":"","size":1794056,"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":"CorfuDB:master","ref":"master","sha":"212f491933912b073ca52c1dfc6a6c8224ea1def","user":{"login":"CorfuDB","id":10199273,"avatar_url":"https://avatars.githubusercontent.com/u/10199273?v=3","gravatar_id":"","url":"https://api.github.com/users/CorfuDB","html_url":"https://github.com/CorfuDB","followers_url":"https://api.github.com/users/CorfuDB/followers","following_url":"https://api.github.com/users/CorfuDB/following{/other_user}","gists_url":"https://api.github.com/users/CorfuDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CorfuDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorfuDB/subscriptions","organizations_url":"https://api.github.com/users/CorfuDB/orgs","repos_url":"https://api.github.com/users/CorfuDB/repos","events_url":"https://api.github.com/users/CorfuDB/events{/privacy}","received_events_url":"https://api.github.com/users/CorfuDB/received_events","type":"Organization","site_admin":false},"repo":{"id":12960439,"name":"CorfuDB","full_name":"CorfuDB/CorfuDB","owner":{"login":"CorfuDB","id":10199273,"avatar_url":"https://avatars.githubusercontent.com/u/10199273?v=3","gravatar_id":"","url":"https://api.github.com/users/CorfuDB","html_url":"https://github.com/CorfuDB","followers_url":"https://api.github.com/users/CorfuDB/followers","following_url":"https://api.github.com/users/CorfuDB/following{/other_user}","gists_url":"https://api.github.com/users/CorfuDB/gists{/gist_id}","starred_url":"https://api.github.com/users/CorfuDB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CorfuDB/subscriptions","organizations_url":"https://api.github.com/users/CorfuDB/orgs","repos_url":"https://api.github.com/users/CorfuDB/repos","events_url":"https://api.github.com/users/CorfuDB/events{/privacy}","received_events_url":"https://api.github.com/users/CorfuDB/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CorfuDB/CorfuDB","description":"A cluster consistency platform","fork":false,"url":"https://api.github.com/repos/CorfuDB/CorfuDB","forks_url":"https://api.github.com/repos/CorfuDB/CorfuDB/forks","keys_url":"https://api.github.com/repos/CorfuDB/CorfuDB/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CorfuDB/CorfuDB/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CorfuDB/CorfuDB/teams","hooks_url":"https://api.github.com/repos/CorfuDB/CorfuDB/hooks","issue_events_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/events{/number}","events_url":"https://api.github.com/repos/CorfuDB/CorfuDB/events","assignees_url":"https://api.github.com/repos/CorfuDB/CorfuDB/assignees{/user}","branches_url":"https://api.github.com/repos/CorfuDB/CorfuDB/branches{/branch}","tags_url":"https://api.github.com/repos/CorfuDB/CorfuDB/tags","blobs_url":"https://api.github.com/repos/CorfuDB/CorfuDB/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CorfuDB/CorfuDB/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CorfuDB/CorfuDB/git/refs{/sha}","trees_url":"https://api.github.com/repos/CorfuDB/CorfuDB/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CorfuDB/CorfuDB/statuses/{sha}","languages_url":"https://api.github.com/repos/CorfuDB/CorfuDB/languages","stargazers_url":"https://api.github.com/repos/CorfuDB/CorfuDB/stargazers","contributors_url":"https://api.github.com/repos/CorfuDB/CorfuDB/contributors","subscribers_url":"https://api.github.com/repos/CorfuDB/CorfuDB/subscribers","subscription_url":"https://api.github.com/repos/CorfuDB/CorfuDB/subscription","commits_url":"https://api.github.com/repos/CorfuDB/CorfuDB/commits{/sha}","git_commits_url":"https://api.github.com/repos/CorfuDB/CorfuDB/git/commits{/sha}","comments_url":"https://api.github.com/repos/CorfuDB/CorfuDB/comments{/number}","issue_comment_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/comments{/number}","contents_url":"https://api.github.com/repos/CorfuDB/CorfuDB/contents/{+path}","compare_url":"https://api.github.com/repos/CorfuDB/CorfuDB/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CorfuDB/CorfuDB/merges","archive_url":"https://api.github.com/repos/CorfuDB/CorfuDB/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CorfuDB/CorfuDB/downloads","issues_url":"https://api.github.com/repos/CorfuDB/CorfuDB/issues{/number}","pulls_url":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls{/number}","milestones_url":"https://api.github.com/repos/CorfuDB/CorfuDB/milestones{/number}","notifications_url":"https://api.github.com/repos/CorfuDB/CorfuDB/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CorfuDB/CorfuDB/labels{/name}","releases_url":"https://api.github.com/repos/CorfuDB/CorfuDB/releases{/id}","deployments_url":"https://api.github.com/repos/CorfuDB/CorfuDB/deployments","created_at":"2013-09-19T22:02:36Z","updated_at":"2016-10-25T16:33:06Z","pushed_at":"2016-10-27T21:00:30Z","git_url":"git://github.com/CorfuDB/CorfuDB.git","ssh_url":"git@github.com:CorfuDB/CorfuDB.git","clone_url":"https://github.com/CorfuDB/CorfuDB.git","svn_url":"https://github.com/CorfuDB/CorfuDB","homepage":"","size":1937896,"stargazers_count":95,"watchers_count":95,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":24,"mirror_url":null,"open_issues_count":51,"forks":24,"open_issues":51,"watchers":95,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255"},"html":{"href":"https://github.com/CorfuDB/CorfuDB/pull/255"},"issue":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/255"},"comments":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/CorfuDB/CorfuDB/statuses/2d37d03c0a0b35ad75e3d34173e463087012401e"}}}}
{"actor":{"display_login":"zalokhan"}}