-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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: Filter the DDL Job History based on DDL types #54389
Conversation
Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @sachin-japate! |
Hi @sachin-japate. Thanks for your PR. I'm waiting for a pingcap member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the 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. |
Hi @sachin-japate. 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-sigs/prow repository. |
/ok-to-test |
/retest |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #54389 +/- ##
=================================================
- Coverage 72.8286% 55.8435% -16.9852%
=================================================
Files 1530 1648 +118
Lines 435981 609940 +173959
=================================================
+ Hits 317519 340612 +23093
- Misses 98821 246706 +147885
- Partials 19641 22622 +2981
Flags with carried forward coverage won't be shown. Click here to find out more.
|
/test unit-test |
@sachin-japate: 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-sigs/prow repository. |
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.
Thansk for your contribution. Can you add some tests to better show the usage? You can refer to
func TestAllHistory(t *testing.T) { |
/hold features require discussion first |
[FORMAT CHECKER NOTIFICATION] Notice: To remove the For example:
📖 For more info, you can check the "Contribute Code" section in the development guide. |
@sachin-japate: 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-sigs/prow repository. I understand the commands that are listed here. |
@sachin-japate: The following tests 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. |
Adding the capability to filter the DDL Job History based on DDL types
What problem does this PR solve?
This PR extends the DDL history job API capability to filter the DDL jobs based on their types.
Issue Number: close #54391
Problem Summary:
Requirements raised due to issues with incremental backups in TiDB have some limitations, incremental backup after certain types of DDL executed can lead to data inconsistency issues.
To solve this, we wanted to handle this situation with our backup scheduling platform, We will introduce a validation before triggering any incremental backup if we encounter such DDLs, full backup will be triggered instead of incremental.
Currently,
ddl/history
API can return all DDLs or DDLs with a starting job_id.http://{TiDBIP}:10080/ddl/history
http://{TiDBIP}:10080/ddl/history?limit={number}
http://{TIDBIP}:10080/ddl/history?start_job_id={id}&limit={number}
Extending API to filter based on the DDL types.
http://{TIDBIP}:10080/ddl/history?ddl_types="2,4,47"
http://{TIDBIP}:10080/ddl/history?ddl_types="2,4,47"&limit={number}
http://{TIDBIP}:10080/ddl/history?start_job_id={id}&ddl_types="2,4,47"&limit={number}
What changed and how does it work?
the combination of start_job_id and ddl_types will not work without limit, as the previous implementation was if the start_job_id was sent limit was a mandatory param. So behavior will remain the same as previously.
Check List
Documentation
Release note
None