{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/6908","repository_url":"https://api.github.com/repos/pingcap/tidb","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/6908/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/6908/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/6908/events","html_url":"https://github.com/pingcap/tidb/pull/6908","id":335637814,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk3Mjg2ODc2","number":6908,"title":"ddl: retrive range from PD everytime when batch backfilling indices","user":{"login":"winkyao","id":6949944,"node_id":"MDQ6VXNlcjY5NDk5NDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6949944?v=4","gravatar_id":"","url":"https://api.github.com/users/winkyao","html_url":"https://github.com/winkyao","followers_url":"https://api.github.com/users/winkyao/followers","following_url":"https://api.github.com/users/winkyao/following{/other_user}","gists_url":"https://api.github.com/users/winkyao/gists{/gist_id}","starred_url":"https://api.github.com/users/winkyao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winkyao/subscriptions","organizations_url":"https://api.github.com/users/winkyao/orgs","repos_url":"https://api.github.com/users/winkyao/repos","events_url":"https://api.github.com/users/winkyao/events{/privacy}","received_events_url":"https://api.github.com/users/winkyao/received_events","type":"User","site_admin":false},"labels":[{"id":745133021,"node_id":"MDU6TGFiZWw3NDUxMzMwMjE=","url":"https://api.github.com/repos/pingcap/tidb/labels/component/DDL-need-LGT3","name":"component/DDL-need-LGT3","color":"00bff4","default":false},{"id":564600738,"node_id":"MDU6TGFiZWw1NjQ2MDA3Mzg=","url":"https://api.github.com/repos/pingcap/tidb/labels/status/LGT2","name":"status/LGT2","color":"5319e7","default":false},{"id":770872605,"node_id":"MDU6TGFiZWw3NzA4NzI2MDU=","url":"https://api.github.com/repos/pingcap/tidb/labels/status/all%20tests%20passed","name":"status/all tests passed","color":"2cbe4e","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-06-26T02:45:31Z","updated_at":"2018-07-23T08:22:27Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/6908","html_url":"https://github.com/pingcap/tidb/pull/6908","diff_url":"https://github.com/pingcap/tidb/pull/6908.diff","patch_url":"https://github.com/pingcap/tidb/pull/6908.patch"},"body":"Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.\r\n\r\n## What have you changed? (mandatory)\r\n\r\nBefore this PR, when TiDB adds a new index, we will retrieve region key range from PD once, then start to backfill indices. The problem is that if the region is steadily inserted, then the region will be split into more regions. If we do not retrieve the region every time before we build the backfill tasks, we can not know the region is already split.\r\n\r\nThis PR retrieve region range every time before we send backfilling tasks to reorganization workers.\r\n\r\n## What are the type of the changes (mandatory)?\r\n\r\nThe currently defined types are listed below, please pick one of the types for this PR by removing the others:\r\n- Improvement (non-breaking change which is an improvement to an existing feature)\r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/406978853","html_url":"https://github.com/pingcap/tidb/pull/6908#issuecomment-406978853","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/6908","id":406978853,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjk3ODg1Mw==","user":{"login":"winkyao","id":6949944,"node_id":"MDQ6VXNlcjY5NDk5NDQ=","avatar_url":"https://avatars0.githubusercontent.com/u/6949944?v=4","gravatar_id":"","url":"https://api.github.com/users/winkyao","html_url":"https://github.com/winkyao","followers_url":"https://api.github.com/users/winkyao/followers","following_url":"https://api.github.com/users/winkyao/following{/other_user}","gists_url":"https://api.github.com/users/winkyao/gists{/gist_id}","starred_url":"https://api.github.com/users/winkyao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/winkyao/subscriptions","organizations_url":"https://api.github.com/users/winkyao/orgs","repos_url":"https://api.github.com/users/winkyao/repos","events_url":"https://api.github.com/users/winkyao/events{/privacy}","received_events_url":"https://api.github.com/users/winkyao/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T08:22:27Z","updated_at":"2018-07-23T08:22:27Z","author_association":"MEMBER","body":"/run-unit-test"}}
{"actor":{"display_login":"winkyao"}}