-
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: limit the concurrent number of ingest jobs to 1 #43210
ddl: limit the concurrent number of ingest jobs to 1 #43210
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
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. |
@@ -622,7 +622,11 @@ func (w *worker) onCreateIndex(d *ddlCtx, t *meta.Meta, job *model.Job, isPK boo | |||
switch indexInfo.State { | |||
case model.StateNone: | |||
// none -> delete only | |||
reorgTp := pickBackfillType(job) | |||
var reorgTp model.ReorgType | |||
reorgTp, err = pickBackfillType(w.ctx, job, indexInfo.Unique) |
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 return err,can will still run add index?Or when there is err for lightning mode, can we all use txnMerge?
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 return err,can will still run add index?
No. Users should check their configuration and fix the issue, or turn off tidb_ddl_enable_fast_reorg
.
Or when there is err for lightning mode, can we all use txnMerge?
If something goes wrong halfway through the execution, it will fallback to txn-merge mode.
/retest |
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
/merge |
This pull request has been accepted and is ready to merge. Commit hash: c43a21d
|
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: close #42903
Problem Summary:
What is changed and how it works?
pickBackfillType
.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.