{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/7356","repository_url":"https://api.github.com/repos/pingcap/tidb","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/7356/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/7356/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/7356/events","html_url":"https://github.com/pingcap/tidb/pull/7356","id":349483445,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA3NTg2Nzcz","number":7356,"title":"ddl: notify stats worker when truncate table","user":{"login":"lamxTyler","id":16222711,"node_id":"MDQ6VXNlcjE2MjIyNzEx","avatar_url":"https://avatars1.githubusercontent.com/u/16222711?v=4","gravatar_id":"","url":"https://api.github.com/users/lamxTyler","html_url":"https://github.com/lamxTyler","followers_url":"https://api.github.com/users/lamxTyler/followers","following_url":"https://api.github.com/users/lamxTyler/following{/other_user}","gists_url":"https://api.github.com/users/lamxTyler/gists{/gist_id}","starred_url":"https://api.github.com/users/lamxTyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lamxTyler/subscriptions","organizations_url":"https://api.github.com/users/lamxTyler/orgs","repos_url":"https://api.github.com/users/lamxTyler/repos","events_url":"https://api.github.com/users/lamxTyler/events{/privacy}","received_events_url":"https://api.github.com/users/lamxTyler/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":256872088,"node_id":"MDU6TGFiZWwyNTY4NzIwODg=","url":"https://api.github.com/repos/pingcap/tidb/labels/type/enhancement","name":"type/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-08-10T11:40:19Z","updated_at":"2018-08-10T11:57:39Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/7356","html_url":"https://github.com/pingcap/tidb/pull/7356","diff_url":"https://github.com/pingcap/tidb/pull/7356.diff","patch_url":"https://github.com/pingcap/tidb/pull/7356.patch"},"body":"<!--\r\nThank you for contributing to TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.\r\n-->\r\n\r\n### What problem does this PR solve? <!--add issue link with summary if exists-->\r\n\r\nWhen a table is truncated, we would not have stats for it because its table id has changed.\r\n\r\n### What is changed and how it works?\r\n\r\nNotify stats woker for the truncated table, so we can create new stats for it. The old stats will be garbage collected by stats worker at later time.\r\n\r\n### Check List <!--REMOVE the items that are not applicable-->\r\n\r\nTests <!-- At least one of them must be included. -->\r\n\r\n - Unit test\r\n\r\nCode changes\r\n\r\n - Has unexported function/method change\r\n\r\nSide effects\r\n\r\n- None\r\n\r\nRelated changes\r\n\r\n- None\r\n\r\nPTAL @coocood @zz-jason @winoros @zimulala \r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/412061146","html_url":"https://github.com/pingcap/tidb/pull/7356#issuecomment-412061146","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/7356","id":412061146,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjA2MTE0Ng==","user":{"login":"zz-jason","id":5268763,"node_id":"MDQ6VXNlcjUyNjg3NjM=","avatar_url":"https://avatars0.githubusercontent.com/u/5268763?v=4","gravatar_id":"","url":"https://api.github.com/users/zz-jason","html_url":"https://github.com/zz-jason","followers_url":"https://api.github.com/users/zz-jason/followers","following_url":"https://api.github.com/users/zz-jason/following{/other_user}","gists_url":"https://api.github.com/users/zz-jason/gists{/gist_id}","starred_url":"https://api.github.com/users/zz-jason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zz-jason/subscriptions","organizations_url":"https://api.github.com/users/zz-jason/orgs","repos_url":"https://api.github.com/users/zz-jason/repos","events_url":"https://api.github.com/users/zz-jason/events{/privacy}","received_events_url":"https://api.github.com/users/zz-jason/received_events","type":"User","site_admin":false},"created_at":"2018-08-10T11:57:39Z","updated_at":"2018-08-10T11:57:39Z","author_association":"MEMBER","body":"LGTM"}}
{"actor":{"display_login":"zz-jason"}}