-
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
ddl: make concurrent ingest job queue instead of fallback #48645
Conversation
Hi @tangenta. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. 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. |
pkg/ddl/ddl_api.go
Outdated
job.ReorgMeta.IsDistReorg = variable.EnableDistTask.Load() | ||
job.ReorgMeta.IsFastReorg = variable.EnableFastReorg.Load() |
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.
If enbaleDistTask == true and enableFastReorg == false, what will happen?
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.
mysql> set global tidb_enable_dist_task = 1;
Query OK, 0 rows affected (0.02 sec)
mysql> set global tidb_ddl_enable_fast_reorg = 0;
Query OK, 0 rows affected (0.03 sec)
mysql> alter table t add index i3(c);
Query OK, 0 rows affected (0.43 sec)
mysql> admin show ddl jobs 1;
+--------+---------+------------+---------------------+--------------+-----------+----------+-----------+---------------------+---------------------+---------------------+--------+
| JOB_ID | DB_NAME | TABLE_NAME | JOB_TYPE | SCHEMA_STATE | SCHEMA_ID | TABLE_ID | ROW_COUNT | CREATE_TIME | START_TIME | END_TIME | STATE |
+--------+---------+------------+---------------------+--------------+-----------+----------+-----------+---------------------+---------------------+---------------------+--------+
| 111 | test | t | add index /* txn */ | public | 2 | 104 | 3 | 2023-11-16 17:16:52 | 2023-11-16 17:16:52 | 2023-11-16 17:16:53 | synced |
+--------+---------+------------+---------------------+--------------+-----------+----------+-----------+---------------------+---------------------+---------------------+--------+
1 row in set (0.01 sec)
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #48645 +/- ##
================================================
+ Coverage 71.1018% 72.6846% +1.5827%
================================================
Files 1365 1389 +24
Lines 404348 411021 +6673
================================================
+ Hits 287499 298749 +11250
+ Misses 96883 93375 -3508
+ Partials 19966 18897 -1069
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/hold |
/unhold |
errors.toml
Outdated
@@ -1343,7 +1343,7 @@ Unsupported clustered primary key type FLOAT/DOUBLE for TTL | |||
|
|||
["ddl:8200"] | |||
error = ''' | |||
Unsupported shard_row_id_bits for table with primary key as row id | |||
Unsupported tidb_enable_dist_task setting. Please enable tidb_ddl_enable_fast_reorg to use distributed task execution. |
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.
Why here use
Unsupported tidb_enable_dist_task setting. Please enable tidb_ddl_enable_fast_reorg to use distributed task execution. | |
Unsupported tidb_enable_dist_task setting. To utilize distributed task execution, please enable tidb_ddl_enable_fast_reorg first. |
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.
LGTM
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: GMHDBJD, ywqzzy The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/retest |
@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/retest |
@tangenta: Cannot trigger testing until a trusted user reviews the PR and leaves an In response to this:
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. |
/ok-to-test |
/retest |
/test all |
/retest |
In response to a cherrypick label: new pull request created to branch |
Signed-off-by: ti-chi-bot <ti-community-prow-bot@tidb.io>
What problem does this PR solve?
Issue Number: close #47758
Problem Summary:
What is changed and how it works?
Check List
Tests
Add
time.Sleep(20*time.Second)
to the first phase ofonCreateIndex()
.Session 1:
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.