-
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: support set explicit task type for ddl request #45789
Conversation
Hi @glorv. 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. |
@wjhuang2016 PTAL for the ddl and ddl ingest part, and @lance6716 PTAL at the changes for lightning part. |
/test all |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #45789 +/- ##
================================================
- Coverage 73.3499% 72.6675% -0.6825%
================================================
Files 1277 1298 +21
Lines 393392 399566 +6174
================================================
+ Hits 288553 290355 +1802
- Misses 86434 90739 +4305
- Partials 18405 18472 +67
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/hold waiting for to be merged tikv/client-go#890 |
@@ -1443,7 +1444,7 @@ func (w *updateColumnWorker) cleanRowMap() { | |||
// BackfillData will backfill the table record in a transaction. A lock corresponds to a rowKey if the value of rowKey is changed. | |||
func (w *updateColumnWorker) BackfillData(handleRange reorgBackfillTask) (taskCtx backfillTaskContext, errInTxn error) { | |||
oprStartTime := time.Now() | |||
ctx := kv.WithInternalSourceType(context.Background(), w.jobContext.ddlJobSourceType()) | |||
ctx := kv.WithInternalSourceAndTaskType(context.Background(), w.jobContext.ddlJobSourceType(), kvutil.ExplicitTypeDDL) |
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 it cannot use WithInternalSourceType
? it should also be ddl?
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.
The ddlJobSourceType()
returns something like "ddl_add_index", so in our current check logic, this can't be recognized as ddl
.
/unhold |
/test build |
@glorv: 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. |
/test build |
@glorv: 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 |
@glorv: 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.
lgtm
/hold waiting for @wjhuang2016's review |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, nolouch, wjhuang2016 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 |
/unhold |
/test unit-test |
@glorv: The specified target(s) for
Use 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. |
/test all |
What problem does this PR solve?
Issue Number: ref #44517
Problem Summary:
What is changed and how it works?
Set the
ExplicitRequestSourceType
for all ddl kv request and ingest request to support control ddl tasks as background tasks.This PR depends on tikv/client-go#890, that is, only set the
ExplicitRequestSourceType
toddl
ifRequestSourceType
is notddl
. In both ways, tikv can parse the source component asddl
correctly.NOTE: Background control for DDL distributed framework is not fully supported currently because the framework itself is not mature. We will see what need to do after the the framework supports handling ddl jobs.
Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.