{"action":"created","comment":{"url":"https://api.github.com/repos/coreos/etcd/pulls/comments/23388994","id":23388994,"diff_hunk":"@@ -172,6 +173,9 @@ func newRaft(id uint64, peers []uint64, election, heartbeat int, storage Storage\n \tif !isHardStateEqual(hs, emptyState) {\n \t\tr.loadState(hs)\n \t}\n+\tif applied > 0 {","path":"raft/raft.go","position":14,"original_position":14,"commit_id":"59214978a22a7893aace389bab3750a9bea4a00f","original_commit_id":"59214978a22a7893aace389bab3750a9bea4a00f","user":{"login":"xiang90","id":4479947,"avatar_url":"https://avatars.githubusercontent.com/u/4479947?v=3","gravatar_id":"","url":"https://api.github.com/users/xiang90","html_url":"https://github.com/xiang90","followers_url":"https://api.github.com/users/xiang90/followers","following_url":"https://api.github.com/users/xiang90/following{/other_user}","gists_url":"https://api.github.com/users/xiang90/gists{/gist_id}","starred_url":"https://api.github.com/users/xiang90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiang90/subscriptions","organizations_url":"https://api.github.com/users/xiang90/orgs","repos_url":"https://api.github.com/users/xiang90/repos","events_url":"https://api.github.com/users/xiang90/events{/privacy}","received_events_url":"https://api.github.com/users/xiang90/received_events","type":"User","site_admin":false},"body":"print out applied at line 186","created_at":"2015-01-22T16:41:52Z","updated_at":"2015-01-22T16:41:52Z","html_url":"https://github.com/coreos/etcd/pull/2128#discussion_r23388994","pull_request_url":"https://api.github.com/repos/coreos/etcd/pulls/2128","_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments/23388994"},"html":{"href":"https://github.com/coreos/etcd/pull/2128#discussion_r23388994"},"pull_request":{"href":"https://api.github.com/repos/coreos/etcd/pulls/2128"}}},"pull_request":{"url":"https://api.github.com/repos/coreos/etcd/pulls/2128","id":27856737,"html_url":"https://github.com/coreos/etcd/pull/2128","diff_url":"https://github.com/coreos/etcd/pull/2128.diff","patch_url":"https://github.com/coreos/etcd/pull/2128.patch","issue_url":"https://api.github.com/repos/coreos/etcd/issues/2128","number":2128,"state":"open","locked":false,"title":"raft: Add applied index as an argument to newRaft and RestartNode.","user":{"login":"bdarnell","id":160562,"avatar_url":"https://avatars.githubusercontent.com/u/160562?v=3","gravatar_id":"","url":"https://api.github.com/users/bdarnell","html_url":"https://github.com/bdarnell","followers_url":"https://api.github.com/users/bdarnell/followers","following_url":"https://api.github.com/users/bdarnell/following{/other_user}","gists_url":"https://api.github.com/users/bdarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/bdarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdarnell/subscriptions","organizations_url":"https://api.github.com/users/bdarnell/orgs","repos_url":"https://api.github.com/users/bdarnell/repos","events_url":"https://api.github.com/users/bdarnell/events{/privacy}","received_events_url":"https://api.github.com/users/bdarnell/received_events","type":"User","site_admin":false},"body":"This PR replaces #2121 and is based on comments there. \r\n\r\nCloses cockroachdb/etcd#6.\r\n\r\n@xiang90 @yichengq ","created_at":"2015-01-22T16:40:07Z","updated_at":"2015-01-22T16:41:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2fa7fb5422b299dd746adacdc59e6ca58af14587","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/coreos/etcd/pulls/2128/commits","review_comments_url":"https://api.github.com/repos/coreos/etcd/pulls/2128/comments","review_comment_url":"https://api.github.com/repos/coreos/etcd/pulls/comments/{number}","comments_url":"https://api.github.com/repos/coreos/etcd/issues/2128/comments","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/59214978a22a7893aace389bab3750a9bea4a00f","head":{"label":"bdarnell:applied-restart","ref":"applied-restart","sha":"59214978a22a7893aace389bab3750a9bea4a00f","user":{"login":"bdarnell","id":160562,"avatar_url":"https://avatars.githubusercontent.com/u/160562?v=3","gravatar_id":"","url":"https://api.github.com/users/bdarnell","html_url":"https://github.com/bdarnell","followers_url":"https://api.github.com/users/bdarnell/followers","following_url":"https://api.github.com/users/bdarnell/following{/other_user}","gists_url":"https://api.github.com/users/bdarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/bdarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdarnell/subscriptions","organizations_url":"https://api.github.com/users/bdarnell/orgs","repos_url":"https://api.github.com/users/bdarnell/repos","events_url":"https://api.github.com/users/bdarnell/events{/privacy}","received_events_url":"https://api.github.com/users/bdarnell/received_events","type":"User","site_admin":false},"repo":{"id":24914743,"name":"etcd","full_name":"bdarnell/etcd","owner":{"login":"bdarnell","id":160562,"avatar_url":"https://avatars.githubusercontent.com/u/160562?v=3","gravatar_id":"","url":"https://api.github.com/users/bdarnell","html_url":"https://github.com/bdarnell","followers_url":"https://api.github.com/users/bdarnell/followers","following_url":"https://api.github.com/users/bdarnell/following{/other_user}","gists_url":"https://api.github.com/users/bdarnell/gists{/gist_id}","starred_url":"https://api.github.com/users/bdarnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bdarnell/subscriptions","organizations_url":"https://api.github.com/users/bdarnell/orgs","repos_url":"https://api.github.com/users/bdarnell/repos","events_url":"https://api.github.com/users/bdarnell/events{/privacy}","received_events_url":"https://api.github.com/users/bdarnell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bdarnell/etcd","description":"A highly-available key value store for shared configuration and service discovery","fork":true,"url":"https://api.github.com/repos/bdarnell/etcd","forks_url":"https://api.github.com/repos/bdarnell/etcd/forks","keys_url":"https://api.github.com/repos/bdarnell/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bdarnell/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bdarnell/etcd/teams","hooks_url":"https://api.github.com/repos/bdarnell/etcd/hooks","issue_events_url":"https://api.github.com/repos/bdarnell/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/bdarnell/etcd/events","assignees_url":"https://api.github.com/repos/bdarnell/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/bdarnell/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/bdarnell/etcd/tags","blobs_url":"https://api.github.com/repos/bdarnell/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bdarnell/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bdarnell/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/bdarnell/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bdarnell/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/bdarnell/etcd/languages","stargazers_url":"https://api.github.com/repos/bdarnell/etcd/stargazers","contributors_url":"https://api.github.com/repos/bdarnell/etcd/contributors","subscribers_url":"https://api.github.com/repos/bdarnell/etcd/subscribers","subscription_url":"https://api.github.com/repos/bdarnell/etcd/subscription","commits_url":"https://api.github.com/repos/bdarnell/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/bdarnell/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/bdarnell/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/bdarnell/etcd/issues/comments/{number}","contents_url":"https://api.github.com/repos/bdarnell/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/bdarnell/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bdarnell/etcd/merges","archive_url":"https://api.github.com/repos/bdarnell/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bdarnell/etcd/downloads","issues_url":"https://api.github.com/repos/bdarnell/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/bdarnell/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/bdarnell/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/bdarnell/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bdarnell/etcd/labels{/name}","releases_url":"https://api.github.com/repos/bdarnell/etcd/releases{/id}","created_at":"2014-10-07T22:38:59Z","updated_at":"2014-10-07T21:58:44Z","pushed_at":"2015-01-22T16:38:10Z","git_url":"git://github.com/bdarnell/etcd.git","ssh_url":"git@github.com:bdarnell/etcd.git","clone_url":"https://github.com/bdarnell/etcd.git","svn_url":"https://github.com/bdarnell/etcd","homepage":"","size":13997,"stargazers_count":0,"watchers_count":0,"language":null,"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":"coreos:master","ref":"master","sha":"4409e883584ef14c243b9f919c9d72338a4cbae2","user":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"repo":{"id":11225014,"name":"etcd","full_name":"coreos/etcd","owner":{"login":"coreos","id":3730757,"avatar_url":"https://avatars.githubusercontent.com/u/3730757?v=3","gravatar_id":"","url":"https://api.github.com/users/coreos","html_url":"https://github.com/coreos","followers_url":"https://api.github.com/users/coreos/followers","following_url":"https://api.github.com/users/coreos/following{/other_user}","gists_url":"https://api.github.com/users/coreos/gists{/gist_id}","starred_url":"https://api.github.com/users/coreos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coreos/subscriptions","organizations_url":"https://api.github.com/users/coreos/orgs","repos_url":"https://api.github.com/users/coreos/repos","events_url":"https://api.github.com/users/coreos/events{/privacy}","received_events_url":"https://api.github.com/users/coreos/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/coreos/etcd","description":"A highly-available key value store for shared configuration and service discovery","fork":false,"url":"https://api.github.com/repos/coreos/etcd","forks_url":"https://api.github.com/repos/coreos/etcd/forks","keys_url":"https://api.github.com/repos/coreos/etcd/keys{/key_id}","collaborators_url":"https://api.github.com/repos/coreos/etcd/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/coreos/etcd/teams","hooks_url":"https://api.github.com/repos/coreos/etcd/hooks","issue_events_url":"https://api.github.com/repos/coreos/etcd/issues/events{/number}","events_url":"https://api.github.com/repos/coreos/etcd/events","assignees_url":"https://api.github.com/repos/coreos/etcd/assignees{/user}","branches_url":"https://api.github.com/repos/coreos/etcd/branches{/branch}","tags_url":"https://api.github.com/repos/coreos/etcd/tags","blobs_url":"https://api.github.com/repos/coreos/etcd/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/coreos/etcd/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/coreos/etcd/git/refs{/sha}","trees_url":"https://api.github.com/repos/coreos/etcd/git/trees{/sha}","statuses_url":"https://api.github.com/repos/coreos/etcd/statuses/{sha}","languages_url":"https://api.github.com/repos/coreos/etcd/languages","stargazers_url":"https://api.github.com/repos/coreos/etcd/stargazers","contributors_url":"https://api.github.com/repos/coreos/etcd/contributors","subscribers_url":"https://api.github.com/repos/coreos/etcd/subscribers","subscription_url":"https://api.github.com/repos/coreos/etcd/subscription","commits_url":"https://api.github.com/repos/coreos/etcd/commits{/sha}","git_commits_url":"https://api.github.com/repos/coreos/etcd/git/commits{/sha}","comments_url":"https://api.github.com/repos/coreos/etcd/comments{/number}","issue_comment_url":"https://api.github.com/repos/coreos/etcd/issues/comments/{number}","contents_url":"https://api.github.com/repos/coreos/etcd/contents/{+path}","compare_url":"https://api.github.com/repos/coreos/etcd/compare/{base}...{head}","merges_url":"https://api.github.com/repos/coreos/etcd/merges","archive_url":"https://api.github.com/repos/coreos/etcd/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/coreos/etcd/downloads","issues_url":"https://api.github.com/repos/coreos/etcd/issues{/number}","pulls_url":"https://api.github.com/repos/coreos/etcd/pulls{/number}","milestones_url":"https://api.github.com/repos/coreos/etcd/milestones{/number}","notifications_url":"https://api.github.com/repos/coreos/etcd/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/coreos/etcd/labels{/name}","releases_url":"https://api.github.com/repos/coreos/etcd/releases{/id}","created_at":"2013-07-06T21:57:21Z","updated_at":"2015-01-22T15:15:10Z","pushed_at":"2015-01-22T00:33:00Z","git_url":"git://github.com/coreos/etcd.git","ssh_url":"git@github.com:coreos/etcd.git","clone_url":"https://github.com/coreos/etcd.git","svn_url":"https://github.com/coreos/etcd","homepage":"","size":26050,"stargazers_count":5292,"watchers_count":5292,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":593,"mirror_url":null,"open_issues_count":98,"forks":593,"open_issues":98,"watchers":5292,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/coreos/etcd/pulls/2128"},"html":{"href":"https://github.com/coreos/etcd/pull/2128"},"issue":{"href":"https://api.github.com/repos/coreos/etcd/issues/2128"},"comments":{"href":"https://api.github.com/repos/coreos/etcd/issues/2128/comments"},"review_comments":{"href":"https://api.github.com/repos/coreos/etcd/pulls/2128/comments"},"review_comment":{"href":"https://api.github.com/repos/coreos/etcd/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/coreos/etcd/pulls/2128/commits"},"statuses":{"href":"https://api.github.com/repos/coreos/etcd/statuses/59214978a22a7893aace389bab3750a9bea4a00f"}}}}