-
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: add summary field for system table tidb_background_subtask
#46562
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. |
ddl/constant.go
Outdated
@@ -65,9 +61,10 @@ const ( | |||
state_update_time bigint, | |||
meta longblob, | |||
error BLOB, | |||
execution_info json, |
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.
prefer name it as summary
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.
Updated.
tidb_background_subtask
tidb_background_subtask
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #46562 +/- ##
================================================
- Coverage 73.3392% 72.3015% -1.0377%
================================================
Files 1309 1332 +23
Lines 394535 404958 +10423
================================================
+ Hits 289349 292791 +3442
- Misses 86772 93620 +6848
- Partials 18414 18547 +133
Flags with carried forward coverage won't be shown. Click here to find out more.
|
tidb_background_subtask
tidb_background_subtask
tidb_background_subtask
tidb_background_subtask
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
@@ -80,5 +77,6 @@ const ( | |||
start_time bigint, | |||
state_update_time bigint, | |||
meta longblob, | |||
summary json, |
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 replace ExecutionInfo with summary?
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.
It is the short term of "subtask execution summary". I think both are fine.
[LGTM Timeline notifier]Timeline:
|
/approve |
1 similar comment
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bb7133, easonn7, lance6716, wjhuang2016, 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. |
/ok-to-test |
/retest |
2 similar comments
/retest |
/retest |
/test all |
What problem does this PR solve?
Issue Number: ref #46258
Problem Summary:
We need a field to record the subtask execution statistic(for example, affected row count). Basically, there are three options:
row_count INTEGER
totidb_background_subtask
.row_count
inmeta BLOB
oftidb_background_subtask
.summary JSON
totidb_background_subtask
.For option 1, it is not extensive to collect more execution statistic. For option 2, it is not convenient to collect the information without deserializing the whole
meta
blob value.Option 3 is a better choice since we make json functions GA in TiDB v6.5.0.
Example usage:
Create subtask:
Update row count:
Collect total row count:
What is changed and how it works?
Add a field
summary JSON
totidb_background_subtask
.Check List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.