-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bootstrap: use BatchCreateTableWithInfo to speed up #42432
Conversation
Signed-off-by: lance6716 <[email protected]>
[REVIEW NOTIFICATION] This pull request has not been approved. To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: lance6716 <[email protected]>
/check-issue-triage-complete |
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
/retest |
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
Signed-off-by: lance6716 <[email protected]>
executor/executor_test.go
Outdated
@@ -5663,9 +5663,10 @@ func TestAdmin(t *testing.T) { | |||
tk.MustExec("use test") | |||
tk.MustExec("drop table if exists admin_test2") | |||
tk.MustExec("create table admin_test2 (c1 int, c2 int, c3 int default 1, index (c1))") | |||
// we cn only see last 10 queries |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// we cn only see last 10 queries | |
// we can only see last 10 queries |
Due to BatchCreateTableWithInfo, we have less history DDL jobs
/cc @bb7133 |
Co-authored-by: lance6716 <[email protected]>
} | ||
tableInfosPart1 = append(tableInfosPart1, tblInfo) | ||
} | ||
batchCreateTable(s, dom.DDL(), tableInfosPart1) | ||
mustExecute(s, CreateMDLView) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So why CreateMDLView
is skipped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment
Signed-off-by: lance6716 <[email protected]>
@lance6716: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This affects not only the test logic, but also the real bootstrap processing.
I have another idea: can we use a bootstraped store as the image for testing, so the bootstrap in testing can be totally avoided?
Yes that seems safer but I don't know how to do it. I guess I should prepare a bootstrapped KV store in some tidb/store/mockstore/mockstore.go Line 165 in 273763b
|
@lance6716: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/hold |
OK, let me have a try. |
can be replaced by #42521 |
What problem does this PR solve?
Issue Number: close #42434
Problem Summary:
What is changed and how it works?
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.