meta/ddl: refactor ddl related sys table creation#62301
Conversation
|
Hi @D3Hunter. Thanks for your PR. PRs from untrusted users cannot be marked as trusted with I understand the commands that are listed here. DetailsInstructions 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-sigs/prow repository. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #62301 +/- ##
================================================
+ Coverage 72.8744% 75.3491% +2.4747%
================================================
Files 1751 1801 +50
Lines 484572 502093 +17521
================================================
+ Hits 353129 378323 +25194
+ Misses 109822 100738 -9084
- Partials 21621 23032 +1411
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
| } | ||
|
|
||
| // InitMDLTable is to create tidb_mdl_info, which is used for metadata lock. | ||
| func InitMDLTable(store kv.Storage) error { |
There was a problem hiding this comment.
the code is same as InitDDLJobTables, so unify them
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
|
|
||
| const ( | ||
| // JobTable stores the information of DDL jobs. | ||
| JobTable = "tidb_ddl_job" |
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
|
|
||
| const ( | ||
| // JobTable stores the information of DDL jobs. | ||
| JobTable = "tidb_ddl_job" |
There was a problem hiding this comment.
JobTable is only used in these place:
getJobsBySQL, and all the place calling this function passJobTabletotbl.
Lines 811 to 816 in db81dee
getJobMetaFromTableandupdateJobMeta2Table, both used inprocessAlterDDLJobConfigcheckAndSetFlashbackClusterInfo
Maybe we can remove JobTable in future too.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: GMHDBJD, joechenrh The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold |
|
/unhold |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
|
/retest |
|
@D3Hunter: Cannot trigger testing until a trusted user reviews the PR and leaves an DetailsIn 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-sigs/prow repository. |
What problem does this PR solve?
Issue Number: ref #61702
Problem Summary:
What changed and how does it work?
metadefpkgCheck List
Tests
upgrade from 6.5.0/7.1.0/8.5.0 to this PR, all success
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.