{"action":"opened","number":1,"pull_request":{"url":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/1","id":37054721,"html_url":"https://github.com/h4lflife/lua-resty-redis/pull/1","diff_url":"https://github.com/h4lflife/lua-resty-redis/pull/1.diff","patch_url":"https://github.com/h4lflife/lua-resty-redis/pull/1.patch","issue_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues/1","number":1,"state":"open","locked":false,"title":"deal with redis failure ","user":{"login":"zhduan","id":5628859,"avatar_url":"https://avatars.githubusercontent.com/u/5628859?v=3","gravatar_id":"","url":"https://api.github.com/users/zhduan","html_url":"https://github.com/zhduan","followers_url":"https://api.github.com/users/zhduan/followers","following_url":"https://api.github.com/users/zhduan/following{/other_user}","gists_url":"https://api.github.com/users/zhduan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhduan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhduan/subscriptions","organizations_url":"https://api.github.com/users/zhduan/orgs","repos_url":"https://api.github.com/users/zhduan/repos","events_url":"https://api.github.com/users/zhduan/events{/privacy}","received_events_url":"https://api.github.com/users/zhduan/received_events","type":"User","site_admin":false},"body":"I added some minimal work to deal with potential redis failover. The cluster will try to initialize again when it fails to connect to the redis node to execute a command.","created_at":"2015-06-05T17:56:18Z","updated_at":"2015-06-05T17:56:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/1/commits","review_comments_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/1/comments","review_comment_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues/1/comments","statuses_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/statuses/bc485ea4b7f4e340c5672750f350e3f7cab6332a","head":{"label":"zhduan:master","ref":"master","sha":"bc485ea4b7f4e340c5672750f350e3f7cab6332a","user":{"login":"zhduan","id":5628859,"avatar_url":"https://avatars.githubusercontent.com/u/5628859?v=3","gravatar_id":"","url":"https://api.github.com/users/zhduan","html_url":"https://github.com/zhduan","followers_url":"https://api.github.com/users/zhduan/followers","following_url":"https://api.github.com/users/zhduan/following{/other_user}","gists_url":"https://api.github.com/users/zhduan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhduan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhduan/subscriptions","organizations_url":"https://api.github.com/users/zhduan/orgs","repos_url":"https://api.github.com/users/zhduan/repos","events_url":"https://api.github.com/users/zhduan/events{/privacy}","received_events_url":"https://api.github.com/users/zhduan/received_events","type":"User","site_admin":false},"repo":{"id":36944514,"name":"lua-resty-redis","full_name":"zhduan/lua-resty-redis","owner":{"login":"zhduan","id":5628859,"avatar_url":"https://avatars.githubusercontent.com/u/5628859?v=3","gravatar_id":"","url":"https://api.github.com/users/zhduan","html_url":"https://github.com/zhduan","followers_url":"https://api.github.com/users/zhduan/followers","following_url":"https://api.github.com/users/zhduan/following{/other_user}","gists_url":"https://api.github.com/users/zhduan/gists{/gist_id}","starred_url":"https://api.github.com/users/zhduan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhduan/subscriptions","organizations_url":"https://api.github.com/users/zhduan/orgs","repos_url":"https://api.github.com/users/zhduan/repos","events_url":"https://api.github.com/users/zhduan/events{/privacy}","received_events_url":"https://api.github.com/users/zhduan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhduan/lua-resty-redis","description":"Lua redis client driver for the ngx_lua based on the cosocket API","fork":true,"url":"https://api.github.com/repos/zhduan/lua-resty-redis","forks_url":"https://api.github.com/repos/zhduan/lua-resty-redis/forks","keys_url":"https://api.github.com/repos/zhduan/lua-resty-redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhduan/lua-resty-redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhduan/lua-resty-redis/teams","hooks_url":"https://api.github.com/repos/zhduan/lua-resty-redis/hooks","issue_events_url":"https://api.github.com/repos/zhduan/lua-resty-redis/issues/events{/number}","events_url":"https://api.github.com/repos/zhduan/lua-resty-redis/events","assignees_url":"https://api.github.com/repos/zhduan/lua-resty-redis/assignees{/user}","branches_url":"https://api.github.com/repos/zhduan/lua-resty-redis/branches{/branch}","tags_url":"https://api.github.com/repos/zhduan/lua-resty-redis/tags","blobs_url":"https://api.github.com/repos/zhduan/lua-resty-redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhduan/lua-resty-redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhduan/lua-resty-redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhduan/lua-resty-redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhduan/lua-resty-redis/statuses/{sha}","languages_url":"https://api.github.com/repos/zhduan/lua-resty-redis/languages","stargazers_url":"https://api.github.com/repos/zhduan/lua-resty-redis/stargazers","contributors_url":"https://api.github.com/repos/zhduan/lua-resty-redis/contributors","subscribers_url":"https://api.github.com/repos/zhduan/lua-resty-redis/subscribers","subscription_url":"https://api.github.com/repos/zhduan/lua-resty-redis/subscription","commits_url":"https://api.github.com/repos/zhduan/lua-resty-redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhduan/lua-resty-redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhduan/lua-resty-redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhduan/lua-resty-redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhduan/lua-resty-redis/contents/{+path}","compare_url":"https://api.github.com/repos/zhduan/lua-resty-redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhduan/lua-resty-redis/merges","archive_url":"https://api.github.com/repos/zhduan/lua-resty-redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhduan/lua-resty-redis/downloads","issues_url":"https://api.github.com/repos/zhduan/lua-resty-redis/issues{/number}","pulls_url":"https://api.github.com/repos/zhduan/lua-resty-redis/pulls{/number}","milestones_url":"https://api.github.com/repos/zhduan/lua-resty-redis/milestones{/number}","notifications_url":"https://api.github.com/repos/zhduan/lua-resty-redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhduan/lua-resty-redis/labels{/name}","releases_url":"https://api.github.com/repos/zhduan/lua-resty-redis/releases{/id}","created_at":"2015-06-05T17:00:14Z","updated_at":"2015-06-05T17:00:14Z","pushed_at":"2015-06-05T17:11:02Z","git_url":"git://github.com/zhduan/lua-resty-redis.git","ssh_url":"git@github.com:zhduan/lua-resty-redis.git","clone_url":"https://github.com/zhduan/lua-resty-redis.git","svn_url":"https://github.com/zhduan/lua-resty-redis","homepage":"","size":200,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"h4lflife:master","ref":"master","sha":"2bd3c8d0be9c7ec5e5afa58d2fc95d435203e58b","user":{"login":"h4lflife","id":7662126,"avatar_url":"https://avatars.githubusercontent.com/u/7662126?v=3","gravatar_id":"","url":"https://api.github.com/users/h4lflife","html_url":"https://github.com/h4lflife","followers_url":"https://api.github.com/users/h4lflife/followers","following_url":"https://api.github.com/users/h4lflife/following{/other_user}","gists_url":"https://api.github.com/users/h4lflife/gists{/gist_id}","starred_url":"https://api.github.com/users/h4lflife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4lflife/subscriptions","organizations_url":"https://api.github.com/users/h4lflife/orgs","repos_url":"https://api.github.com/users/h4lflife/repos","events_url":"https://api.github.com/users/h4lflife/events{/privacy}","received_events_url":"https://api.github.com/users/h4lflife/received_events","type":"User","site_admin":false},"repo":{"id":20038343,"name":"lua-resty-redis","full_name":"h4lflife/lua-resty-redis","owner":{"login":"h4lflife","id":7662126,"avatar_url":"https://avatars.githubusercontent.com/u/7662126?v=3","gravatar_id":"","url":"https://api.github.com/users/h4lflife","html_url":"https://github.com/h4lflife","followers_url":"https://api.github.com/users/h4lflife/followers","following_url":"https://api.github.com/users/h4lflife/following{/other_user}","gists_url":"https://api.github.com/users/h4lflife/gists{/gist_id}","starred_url":"https://api.github.com/users/h4lflife/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h4lflife/subscriptions","organizations_url":"https://api.github.com/users/h4lflife/orgs","repos_url":"https://api.github.com/users/h4lflife/repos","events_url":"https://api.github.com/users/h4lflife/events{/privacy}","received_events_url":"https://api.github.com/users/h4lflife/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/h4lflife/lua-resty-redis","description":"Lua redis client driver for the ngx_lua based on the cosocket API","fork":true,"url":"https://api.github.com/repos/h4lflife/lua-resty-redis","forks_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/forks","keys_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/teams","hooks_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/hooks","issue_events_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues/events{/number}","events_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/events","assignees_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/assignees{/user}","branches_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/branches{/branch}","tags_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/tags","blobs_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/git/refs{/sha}","trees_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/statuses/{sha}","languages_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/languages","stargazers_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/stargazers","contributors_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/contributors","subscribers_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/subscribers","subscription_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/subscription","commits_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/commits{/sha}","git_commits_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/git/commits{/sha}","comments_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/comments{/number}","issue_comment_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues/comments{/number}","contents_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/contents/{+path}","compare_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/merges","archive_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/downloads","issues_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues{/number}","pulls_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls{/number}","milestones_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/milestones{/number}","notifications_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/labels{/name}","releases_url":"https://api.github.com/repos/h4lflife/lua-resty-redis/releases{/id}","created_at":"2014-05-21T21:39:53Z","updated_at":"2015-04-09T08:47:08Z","pushed_at":"2015-06-05T17:56:18Z","git_url":"git://github.com/h4lflife/lua-resty-redis.git","ssh_url":"git@github.com:h4lflife/lua-resty-redis.git","clone_url":"https://github.com/h4lflife/lua-resty-redis.git","svn_url":"https://github.com/h4lflife/lua-resty-redis","homepage":"","size":249,"stargazers_count":1,"watchers_count":1,"language":"Perl","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/1"},"html":{"href":"https://github.com/h4lflife/lua-resty-redis/pull/1"},"issue":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues/1"},"comments":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/h4lflife/lua-resty-redis/statuses/bc485ea4b7f4e340c5672750f350e3f7cab6332a"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":92,"deletions":80,"changed_files":2}}