{"action":"created","comment":{"url":"https://api.github.com/repos/basho/riak-php-client/pulls/comments/49374057","id":49374057,"diff_hunk":"@@ -213,10 +226,15 @@ public function getLastRequest()\n      * @return $this\n      * @throws Exception\n      */\n-    protected function pickNewNode()\n+    public function pickNewNode()\n     {\n-        // mark current active node as inactive\n+        // mark current active node as inactive and increment attempts\n         $this->getActiveNode()->setInactive(true);\n+        $this->attempts++;\n+        $this->inactiveNodes[$this->getActiveNodeIndex()] = $this->getActiveNode();","path":"src/Riak.php","position":88,"original_position":88,"commit_id":"23ef73769a6f2d16de04edf51a4a43133f1e7a27","original_commit_id":"23ef73769a6f2d16de04edf51a4a43133f1e7a27","user":{"login":"lukebakken","id":514926,"avatar_url":"https://avatars.githubusercontent.com/u/514926?v=3","gravatar_id":"","url":"https://api.github.com/users/lukebakken","html_url":"https://github.com/lukebakken","followers_url":"https://api.github.com/users/lukebakken/followers","following_url":"https://api.github.com/users/lukebakken/following{/other_user}","gists_url":"https://api.github.com/users/lukebakken/gists{/gist_id}","starred_url":"https://api.github.com/users/lukebakken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukebakken/subscriptions","organizations_url":"https://api.github.com/users/lukebakken/orgs","repos_url":"https://api.github.com/users/lukebakken/repos","events_url":"https://api.github.com/users/lukebakken/events{/privacy}","received_events_url":"https://api.github.com/users/lukebakken/received_events","type":"User","site_admin":false},"body":"How does a node become active again?","created_at":"2016-01-11T20:29:23Z","updated_at":"2016-01-11T20:29:23Z","html_url":"https://github.com/basho/riak-php-client/pull/114#discussion_r49374057","pull_request_url":"https://api.github.com/repos/basho/riak-php-client/pulls/114","_links":{"self":{"href":"https://api.github.com/repos/basho/riak-php-client/pulls/comments/49374057"},"html":{"href":"https://github.com/basho/riak-php-client/pull/114#discussion_r49374057"},"pull_request":{"href":"https://api.github.com/repos/basho/riak-php-client/pulls/114"}}},"pull_request":{"url":"https://api.github.com/repos/basho/riak-php-client/pulls/114","id":55665247,"html_url":"https://github.com/basho/riak-php-client/pull/114","diff_url":"https://github.com/basho/riak-php-client/pull/114.diff","patch_url":"https://github.com/basho/riak-php-client/pull/114.patch","issue_url":"https://api.github.com/repos/basho/riak-php-client/issues/114","number":114,"state":"open","locked":false,"title":"fix node failover. add proper tests for unreachable node and maxconne…","user":{"login":"christophermancini","id":131620,"avatar_url":"https://avatars.githubusercontent.com/u/131620?v=3","gravatar_id":"","url":"https://api.github.com/users/christophermancini","html_url":"https://github.com/christophermancini","followers_url":"https://api.github.com/users/christophermancini/followers","following_url":"https://api.github.com/users/christophermancini/following{/other_user}","gists_url":"https://api.github.com/users/christophermancini/gists{/gist_id}","starred_url":"https://api.github.com/users/christophermancini/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christophermancini/subscriptions","organizations_url":"https://api.github.com/users/christophermancini/orgs","repos_url":"https://api.github.com/users/christophermancini/repos","events_url":"https://api.github.com/users/christophermancini/events{/privacy}","received_events_url":"https://api.github.com/users/christophermancini/received_events","type":"User","site_admin":false},"body":"…ctions.\r\n\r\nTo address issue #113 (CLIENTS-700) ","created_at":"2016-01-11T19:21:16Z","updated_at":"2016-01-11T20:29:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b93b1c62fa088659828d9813c49229e29e9678c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/basho/riak-php-client/pulls/114/commits","review_comments_url":"https://api.github.com/repos/basho/riak-php-client/pulls/114/comments","review_comment_url":"https://api.github.com/repos/basho/riak-php-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/basho/riak-php-client/issues/114/comments","statuses_url":"https://api.github.com/repos/basho/riak-php-client/statuses/23ef73769a6f2d16de04edf51a4a43133f1e7a27","head":{"label":"basho:issue/113","ref":"issue/113","sha":"23ef73769a6f2d16de04edf51a4a43133f1e7a27","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":613740,"name":"riak-php-client","full_name":"basho/riak-php-client","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/riak-php-client","description":"PHP clients for Riak","fork":false,"url":"https://api.github.com/repos/basho/riak-php-client","forks_url":"https://api.github.com/repos/basho/riak-php-client/forks","keys_url":"https://api.github.com/repos/basho/riak-php-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/riak-php-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/riak-php-client/teams","hooks_url":"https://api.github.com/repos/basho/riak-php-client/hooks","issue_events_url":"https://api.github.com/repos/basho/riak-php-client/issues/events{/number}","events_url":"https://api.github.com/repos/basho/riak-php-client/events","assignees_url":"https://api.github.com/repos/basho/riak-php-client/assignees{/user}","branches_url":"https://api.github.com/repos/basho/riak-php-client/branches{/branch}","tags_url":"https://api.github.com/repos/basho/riak-php-client/tags","blobs_url":"https://api.github.com/repos/basho/riak-php-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/riak-php-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/riak-php-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/riak-php-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/riak-php-client/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/riak-php-client/languages","stargazers_url":"https://api.github.com/repos/basho/riak-php-client/stargazers","contributors_url":"https://api.github.com/repos/basho/riak-php-client/contributors","subscribers_url":"https://api.github.com/repos/basho/riak-php-client/subscribers","subscription_url":"https://api.github.com/repos/basho/riak-php-client/subscription","commits_url":"https://api.github.com/repos/basho/riak-php-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/riak-php-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/riak-php-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/riak-php-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/riak-php-client/contents/{+path}","compare_url":"https://api.github.com/repos/basho/riak-php-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/riak-php-client/merges","archive_url":"https://api.github.com/repos/basho/riak-php-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/riak-php-client/downloads","issues_url":"https://api.github.com/repos/basho/riak-php-client/issues{/number}","pulls_url":"https://api.github.com/repos/basho/riak-php-client/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/riak-php-client/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/riak-php-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/riak-php-client/labels{/name}","releases_url":"https://api.github.com/repos/basho/riak-php-client/releases{/id}","created_at":"2010-04-16T14:56:23Z","updated_at":"2015-12-30T12:27:37Z","pushed_at":"2016-01-11T19:21:17Z","git_url":"git://github.com/basho/riak-php-client.git","ssh_url":"git@github.com:basho/riak-php-client.git","clone_url":"https://github.com/basho/riak-php-client.git","svn_url":"https://github.com/basho/riak-php-client","homepage":"","size":3113,"stargazers_count":149,"watchers_count":149,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":62,"mirror_url":null,"open_issues_count":2,"forks":62,"open_issues":2,"watchers":149,"default_branch":"develop"}},"base":{"label":"basho:develop","ref":"develop","sha":"d368b761ae6752f9fd55853b681473161e2368b2","user":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"repo":{"id":613740,"name":"riak-php-client","full_name":"basho/riak-php-client","owner":{"login":"basho","id":176293,"avatar_url":"https://avatars.githubusercontent.com/u/176293?v=3","gravatar_id":"","url":"https://api.github.com/users/basho","html_url":"https://github.com/basho","followers_url":"https://api.github.com/users/basho/followers","following_url":"https://api.github.com/users/basho/following{/other_user}","gists_url":"https://api.github.com/users/basho/gists{/gist_id}","starred_url":"https://api.github.com/users/basho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basho/subscriptions","organizations_url":"https://api.github.com/users/basho/orgs","repos_url":"https://api.github.com/users/basho/repos","events_url":"https://api.github.com/users/basho/events{/privacy}","received_events_url":"https://api.github.com/users/basho/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/basho/riak-php-client","description":"PHP clients for Riak","fork":false,"url":"https://api.github.com/repos/basho/riak-php-client","forks_url":"https://api.github.com/repos/basho/riak-php-client/forks","keys_url":"https://api.github.com/repos/basho/riak-php-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/basho/riak-php-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/basho/riak-php-client/teams","hooks_url":"https://api.github.com/repos/basho/riak-php-client/hooks","issue_events_url":"https://api.github.com/repos/basho/riak-php-client/issues/events{/number}","events_url":"https://api.github.com/repos/basho/riak-php-client/events","assignees_url":"https://api.github.com/repos/basho/riak-php-client/assignees{/user}","branches_url":"https://api.github.com/repos/basho/riak-php-client/branches{/branch}","tags_url":"https://api.github.com/repos/basho/riak-php-client/tags","blobs_url":"https://api.github.com/repos/basho/riak-php-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/basho/riak-php-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/basho/riak-php-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/basho/riak-php-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/basho/riak-php-client/statuses/{sha}","languages_url":"https://api.github.com/repos/basho/riak-php-client/languages","stargazers_url":"https://api.github.com/repos/basho/riak-php-client/stargazers","contributors_url":"https://api.github.com/repos/basho/riak-php-client/contributors","subscribers_url":"https://api.github.com/repos/basho/riak-php-client/subscribers","subscription_url":"https://api.github.com/repos/basho/riak-php-client/subscription","commits_url":"https://api.github.com/repos/basho/riak-php-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/basho/riak-php-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/basho/riak-php-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/basho/riak-php-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/basho/riak-php-client/contents/{+path}","compare_url":"https://api.github.com/repos/basho/riak-php-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/basho/riak-php-client/merges","archive_url":"https://api.github.com/repos/basho/riak-php-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/basho/riak-php-client/downloads","issues_url":"https://api.github.com/repos/basho/riak-php-client/issues{/number}","pulls_url":"https://api.github.com/repos/basho/riak-php-client/pulls{/number}","milestones_url":"https://api.github.com/repos/basho/riak-php-client/milestones{/number}","notifications_url":"https://api.github.com/repos/basho/riak-php-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/basho/riak-php-client/labels{/name}","releases_url":"https://api.github.com/repos/basho/riak-php-client/releases{/id}","created_at":"2010-04-16T14:56:23Z","updated_at":"2015-12-30T12:27:37Z","pushed_at":"2016-01-11T19:21:17Z","git_url":"git://github.com/basho/riak-php-client.git","ssh_url":"git@github.com:basho/riak-php-client.git","clone_url":"https://github.com/basho/riak-php-client.git","svn_url":"https://github.com/basho/riak-php-client","homepage":"","size":3113,"stargazers_count":149,"watchers_count":149,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":62,"mirror_url":null,"open_issues_count":2,"forks":62,"open_issues":2,"watchers":149,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/basho/riak-php-client/pulls/114"},"html":{"href":"https://github.com/basho/riak-php-client/pull/114"},"issue":{"href":"https://api.github.com/repos/basho/riak-php-client/issues/114"},"comments":{"href":"https://api.github.com/repos/basho/riak-php-client/issues/114/comments"},"review_comments":{"href":"https://api.github.com/repos/basho/riak-php-client/pulls/114/comments"},"review_comment":{"href":"https://api.github.com/repos/basho/riak-php-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/basho/riak-php-client/pulls/114/commits"},"statuses":{"href":"https://api.github.com/repos/basho/riak-php-client/statuses/23ef73769a6f2d16de04edf51a4a43133f1e7a27"}}}}