{"action":"created","issue":{"url":"https://api.github.com/repos/pingcap/tidb/issues/7246","repository_url":"https://api.github.com/repos/pingcap/tidb","labels_url":"https://api.github.com/repos/pingcap/tidb/issues/7246/labels{/name}","comments_url":"https://api.github.com/repos/pingcap/tidb/issues/7246/comments","events_url":"https://api.github.com/repos/pingcap/tidb/issues/7246/events","html_url":"https://github.com/pingcap/tidb/pull/7246","id":346844602,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NjA3OTU4","number":7246,"title":"executor: init builder startTS in `buildTableDual`","user":{"login":"coocood","id":891222,"node_id":"MDQ6VXNlcjg5MTIyMg==","avatar_url":"https://avatars0.githubusercontent.com/u/891222?v=4","gravatar_id":"","url":"https://api.github.com/users/coocood","html_url":"https://github.com/coocood","followers_url":"https://api.github.com/users/coocood/followers","following_url":"https://api.github.com/users/coocood/following{/other_user}","gists_url":"https://api.github.com/users/coocood/gists{/gist_id}","starred_url":"https://api.github.com/users/coocood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coocood/subscriptions","organizations_url":"https://api.github.com/users/coocood/orgs","repos_url":"https://api.github.com/users/coocood/repos","events_url":"https://api.github.com/users/coocood/events{/privacy}","received_events_url":"https://api.github.com/users/coocood/received_events","type":"User","site_admin":false},"labels":[{"id":914340021,"node_id":"MDU6TGFiZWw5MTQzNDAwMjE=","url":"https://api.github.com/repos/pingcap/tidb/labels/type/2.0%20cherry-pick","name":"type/2.0 cherry-pick","color":"99d0ef","default":false},{"id":630229257,"node_id":"MDU6TGFiZWw2MzAyMjkyNTc=","url":"https://api.github.com/repos/pingcap/tidb/labels/type/bug-fix","name":"type/bug-fix","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-08-02T03:21:14Z","updated_at":"2018-08-02T04:39:54Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/pingcap/tidb/pulls/7246","html_url":"https://github.com/pingcap/tidb/pull/7246","diff_url":"https://github.com/pingcap/tidb/pull/7246.diff","patch_url":"https://github.com/pingcap/tidb/pull/7246.patch"},"body":"Cherry-pick https://github.com/pingcap/tidb/pull/6830\r\n\r\n## What have you changed? (mandatory)\r\n\r\nWhen we build an index join executor with outer table is table dual, we never call `b.getStartTS` during build time.\r\nBut later when we execute the query, we use the builder to build inner table which needs `startTS`, but by then, the transaction is set to invalid, then we panic.\r\n\r\nThis PR init the startTS in `executorBuilder.buildTableDual` to fix the panic issue.\r\n\r\n## What are the type of the changes (mandatory)?\r\n- Bug fix (non-breaking change which fixes an issue)\r\n\r\n## How has this PR been tested (mandatory)?\r\n- unit-test\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/pingcap/tidb/issues/comments/409803555","html_url":"https://github.com/pingcap/tidb/pull/7246#issuecomment-409803555","issue_url":"https://api.github.com/repos/pingcap/tidb/issues/7246","id":409803555,"node_id":"MDEyOklzc3VlQ29tbWVudDQwOTgwMzU1NQ==","user":{"login":"coocood","id":891222,"node_id":"MDQ6VXNlcjg5MTIyMg==","avatar_url":"https://avatars0.githubusercontent.com/u/891222?v=4","gravatar_id":"","url":"https://api.github.com/users/coocood","html_url":"https://github.com/coocood","followers_url":"https://api.github.com/users/coocood/followers","following_url":"https://api.github.com/users/coocood/following{/other_user}","gists_url":"https://api.github.com/users/coocood/gists{/gist_id}","starred_url":"https://api.github.com/users/coocood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coocood/subscriptions","organizations_url":"https://api.github.com/users/coocood/orgs","repos_url":"https://api.github.com/users/coocood/repos","events_url":"https://api.github.com/users/coocood/events{/privacy}","received_events_url":"https://api.github.com/users/coocood/received_events","type":"User","site_admin":false},"created_at":"2018-08-02T04:39:54Z","updated_at":"2018-08-02T04:39:54Z","author_association":"MEMBER","body":"/run-mybatis-test tikv=release-2.0 tidb-test=release-2.0"}}
{"actor":{"display_login":"coocood"}}