{"action":"closed","number":1845,"pull_request":{"url":"https://api.github.com/repos/youtube/vitess/pulls/1845","id":76182952,"html_url":"https://github.com/youtube/vitess/pull/1845","diff_url":"https://github.com/youtube/vitess/pull/1845.diff","patch_url":"https://github.com/youtube/vitess/pull/1845.patch","issue_url":"https://api.github.com/repos/youtube/vitess/issues/1845","number":1845,"state":"closed","locked":false,"title":"worker: Support restarting a failed streaming query.","user":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"body":"@alainjobart \r\n\r\nWe'll restart the query by advancing the start of the chunk right after the primary key of the last row read so far.\r\n\r\nOther changes:\r\n- Refactored FindChunks. I'm using sqltypes.Result now.\r\n- Added Chunk struct to store a chunk. I'm using sqltypes.Value for the start and end to simplify processing the values.\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"35\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/youtube/vitess/1845)\n<!-- Reviewable:end -->\n","created_at":"2016-07-04T16:07:53Z","updated_at":"2016-07-05T10:52:22Z","closed_at":"2016-07-05T10:52:22Z","merged_at":"2016-07-05T10:52:22Z","merge_commit_sha":"b0ec7fc027804ef1dd7b944046939f1400322d60","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/youtube/vitess/pulls/1845/commits","review_comments_url":"https://api.github.com/repos/youtube/vitess/pulls/1845/comments","review_comment_url":"https://api.github.com/repos/youtube/vitess/pulls/comments{/number}","comments_url":"https://api.github.com/repos/youtube/vitess/issues/1845/comments","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/9e8d35d92f730855f1f578c9ba23f81bf66a7221","head":{"label":"michael-berlin:restartable_result_reader","ref":"restartable_result_reader","sha":"9e8d35d92f730855f1f578c9ba23f81bf66a7221","user":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"repo":{"id":30728262,"name":"vitess","full_name":"michael-berlin/vitess","owner":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michael-berlin/vitess","description":"vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.","fork":true,"url":"https://api.github.com/repos/michael-berlin/vitess","forks_url":"https://api.github.com/repos/michael-berlin/vitess/forks","keys_url":"https://api.github.com/repos/michael-berlin/vitess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michael-berlin/vitess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michael-berlin/vitess/teams","hooks_url":"https://api.github.com/repos/michael-berlin/vitess/hooks","issue_events_url":"https://api.github.com/repos/michael-berlin/vitess/issues/events{/number}","events_url":"https://api.github.com/repos/michael-berlin/vitess/events","assignees_url":"https://api.github.com/repos/michael-berlin/vitess/assignees{/user}","branches_url":"https://api.github.com/repos/michael-berlin/vitess/branches{/branch}","tags_url":"https://api.github.com/repos/michael-berlin/vitess/tags","blobs_url":"https://api.github.com/repos/michael-berlin/vitess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michael-berlin/vitess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michael-berlin/vitess/git/refs{/sha}","trees_url":"https://api.github.com/repos/michael-berlin/vitess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michael-berlin/vitess/statuses/{sha}","languages_url":"https://api.github.com/repos/michael-berlin/vitess/languages","stargazers_url":"https://api.github.com/repos/michael-berlin/vitess/stargazers","contributors_url":"https://api.github.com/repos/michael-berlin/vitess/contributors","subscribers_url":"https://api.github.com/repos/michael-berlin/vitess/subscribers","subscription_url":"https://api.github.com/repos/michael-berlin/vitess/subscription","commits_url":"https://api.github.com/repos/michael-berlin/vitess/commits{/sha}","git_commits_url":"https://api.github.com/repos/michael-berlin/vitess/git/commits{/sha}","comments_url":"https://api.github.com/repos/michael-berlin/vitess/comments{/number}","issue_comment_url":"https://api.github.com/repos/michael-berlin/vitess/issues/comments{/number}","contents_url":"https://api.github.com/repos/michael-berlin/vitess/contents/{+path}","compare_url":"https://api.github.com/repos/michael-berlin/vitess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michael-berlin/vitess/merges","archive_url":"https://api.github.com/repos/michael-berlin/vitess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michael-berlin/vitess/downloads","issues_url":"https://api.github.com/repos/michael-berlin/vitess/issues{/number}","pulls_url":"https://api.github.com/repos/michael-berlin/vitess/pulls{/number}","milestones_url":"https://api.github.com/repos/michael-berlin/vitess/milestones{/number}","notifications_url":"https://api.github.com/repos/michael-berlin/vitess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michael-berlin/vitess/labels{/name}","releases_url":"https://api.github.com/repos/michael-berlin/vitess/releases{/id}","deployments_url":"https://api.github.com/repos/michael-berlin/vitess/deployments","created_at":"2015-02-12T22:43:14Z","updated_at":"2015-02-12T22:43:17Z","pushed_at":"2016-07-05T09:44:33Z","git_url":"git://github.com/michael-berlin/vitess.git","ssh_url":"git@github.com:michael-berlin/vitess.git","clone_url":"https://github.com/michael-berlin/vitess.git","svn_url":"https://github.com/michael-berlin/vitess","homepage":null,"size":60036,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"youtube:master","ref":"master","sha":"e96c13a7c8aa0ab59aec08fd91b0fd1a3e736be5","user":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"repo":{"id":11008207,"name":"vitess","full_name":"youtube/vitess","owner":{"login":"youtube","id":4052902,"avatar_url":"https://avatars.githubusercontent.com/u/4052902?v=3","gravatar_id":"","url":"https://api.github.com/users/youtube","html_url":"https://github.com/youtube","followers_url":"https://api.github.com/users/youtube/followers","following_url":"https://api.github.com/users/youtube/following{/other_user}","gists_url":"https://api.github.com/users/youtube/gists{/gist_id}","starred_url":"https://api.github.com/users/youtube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youtube/subscriptions","organizations_url":"https://api.github.com/users/youtube/orgs","repos_url":"https://api.github.com/users/youtube/repos","events_url":"https://api.github.com/users/youtube/events{/privacy}","received_events_url":"https://api.github.com/users/youtube/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/youtube/vitess","description":"vitess provides servers and tools which facilitate scaling of MySQL databases for large scale web services.","fork":false,"url":"https://api.github.com/repos/youtube/vitess","forks_url":"https://api.github.com/repos/youtube/vitess/forks","keys_url":"https://api.github.com/repos/youtube/vitess/keys{/key_id}","collaborators_url":"https://api.github.com/repos/youtube/vitess/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/youtube/vitess/teams","hooks_url":"https://api.github.com/repos/youtube/vitess/hooks","issue_events_url":"https://api.github.com/repos/youtube/vitess/issues/events{/number}","events_url":"https://api.github.com/repos/youtube/vitess/events","assignees_url":"https://api.github.com/repos/youtube/vitess/assignees{/user}","branches_url":"https://api.github.com/repos/youtube/vitess/branches{/branch}","tags_url":"https://api.github.com/repos/youtube/vitess/tags","blobs_url":"https://api.github.com/repos/youtube/vitess/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/youtube/vitess/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/youtube/vitess/git/refs{/sha}","trees_url":"https://api.github.com/repos/youtube/vitess/git/trees{/sha}","statuses_url":"https://api.github.com/repos/youtube/vitess/statuses/{sha}","languages_url":"https://api.github.com/repos/youtube/vitess/languages","stargazers_url":"https://api.github.com/repos/youtube/vitess/stargazers","contributors_url":"https://api.github.com/repos/youtube/vitess/contributors","subscribers_url":"https://api.github.com/repos/youtube/vitess/subscribers","subscription_url":"https://api.github.com/repos/youtube/vitess/subscription","commits_url":"https://api.github.com/repos/youtube/vitess/commits{/sha}","git_commits_url":"https://api.github.com/repos/youtube/vitess/git/commits{/sha}","comments_url":"https://api.github.com/repos/youtube/vitess/comments{/number}","issue_comment_url":"https://api.github.com/repos/youtube/vitess/issues/comments{/number}","contents_url":"https://api.github.com/repos/youtube/vitess/contents/{+path}","compare_url":"https://api.github.com/repos/youtube/vitess/compare/{base}...{head}","merges_url":"https://api.github.com/repos/youtube/vitess/merges","archive_url":"https://api.github.com/repos/youtube/vitess/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/youtube/vitess/downloads","issues_url":"https://api.github.com/repos/youtube/vitess/issues{/number}","pulls_url":"https://api.github.com/repos/youtube/vitess/pulls{/number}","milestones_url":"https://api.github.com/repos/youtube/vitess/milestones{/number}","notifications_url":"https://api.github.com/repos/youtube/vitess/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/youtube/vitess/labels{/name}","releases_url":"https://api.github.com/repos/youtube/vitess/releases{/id}","deployments_url":"https://api.github.com/repos/youtube/vitess/deployments","created_at":"2013-06-27T21:20:28Z","updated_at":"2016-07-05T10:25:15Z","pushed_at":"2016-07-05T10:52:22Z","git_url":"git://github.com/youtube/vitess.git","ssh_url":"git@github.com:youtube/vitess.git","clone_url":"https://github.com/youtube/vitess.git","svn_url":"https://github.com/youtube/vitess","homepage":null,"size":87490,"stargazers_count":3598,"watchers_count":3598,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":465,"mirror_url":null,"open_issues_count":13,"forks":465,"open_issues":13,"watchers":3598,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/youtube/vitess/pulls/1845"},"html":{"href":"https://github.com/youtube/vitess/pull/1845"},"issue":{"href":"https://api.github.com/repos/youtube/vitess/issues/1845"},"comments":{"href":"https://api.github.com/repos/youtube/vitess/issues/1845/comments"},"review_comments":{"href":"https://api.github.com/repos/youtube/vitess/pulls/1845/comments"},"review_comment":{"href":"https://api.github.com/repos/youtube/vitess/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/youtube/vitess/pulls/1845/commits"},"statuses":{"href":"https://api.github.com/repos/youtube/vitess/statuses/9e8d35d92f730855f1f578c9ba23f81bf66a7221"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"michael-berlin","id":3919251,"avatar_url":"https://avatars.githubusercontent.com/u/3919251?v=3","gravatar_id":"","url":"https://api.github.com/users/michael-berlin","html_url":"https://github.com/michael-berlin","followers_url":"https://api.github.com/users/michael-berlin/followers","following_url":"https://api.github.com/users/michael-berlin/following{/other_user}","gists_url":"https://api.github.com/users/michael-berlin/gists{/gist_id}","starred_url":"https://api.github.com/users/michael-berlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michael-berlin/subscriptions","organizations_url":"https://api.github.com/users/michael-berlin/orgs","repos_url":"https://api.github.com/users/michael-berlin/repos","events_url":"https://api.github.com/users/michael-berlin/events{/privacy}","received_events_url":"https://api.github.com/users/michael-berlin/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":3,"additions":617,"deletions":197,"changed_files":9}}
{"actor":{"display_login":"michael-berlin"}}