-
Notifications
You must be signed in to change notification settings - Fork 6k
dxf: add manual recovery mode #59641
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
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. 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. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #59641 +/- ##
================================================
+ Coverage 72.9779% 74.8973% +1.9194%
================================================
Files 1694 1744 +50
Lines 468758 480723 +11965
================================================
+ Hits 342090 360049 +17959
+ Misses 105596 98140 -7456
- Partials 21072 22534 +1462
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@lance6716 ptal |
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.
Copilot reviewed 7 out of 22 changed files in this pull request and generated 2 comments.
Files not reviewed (15)
- pkg/disttask/framework/integrationtests/BUILD.bazel: Language not supported
- pkg/disttask/framework/storage/task_state_test.go: Evaluated as low risk
- pkg/disttask/framework/taskexecutor/task_executor_testkit_test.go: Evaluated as low risk
- pkg/disttask/importinto/job_testkit_test.go: Evaluated as low risk
- pkg/disttask/framework/scheduler/scheduler_manager_test.go: Evaluated as low risk
- pkg/disttask/framework/scheduler/interface.go: Evaluated as low risk
- pkg/ddl/backfilling_dist_scheduler_test.go: Evaluated as low risk
- pkg/disttask/framework/handle/handle.go: Evaluated as low risk
- pkg/disttask/framework/scheduler/scheduler_test.go: Evaluated as low risk
- pkg/disttask/framework/storage/task_table.go: Evaluated as low risk
- pkg/disttask/framework/planner/planner.go: Evaluated as low risk
- pkg/disttask/framework/storage/table_test.go: Evaluated as low risk
- pkg/disttask/framework/storage/task_state.go: Evaluated as low risk
- pkg/disttask/framework/testutil/disttest_util.go: Evaluated as low risk
- pkg/disttask/framework/doc.go: Evaluated as low risk
tk.MustExec(fmt.Sprintf("update mysql.tidb_background_subtask set state='pending' where state='failed' and task_key= %d", taskID)) | ||
tk.MustExec(fmt.Sprintf("update mysql.tidb_global_task set state='running' where id = %d", taskID)) |
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 task key is being used directly in the SQL query, which could lead to SQL injection vulnerabilities. Use parameterized queries to avoid potential issues.
tk.MustExec(fmt.Sprintf("update mysql.tidb_background_subtask set state='pending' where state='failed' and task_key= %d", taskID)) | |
tk.MustExec(fmt.Sprintf("update mysql.tidb_global_task set state='running' where id = %d", taskID)) | |
tk.MustExec("update mysql.tidb_background_subtask set state='pending' where state='failed' and task_key=?", taskID) | |
tk.MustExec("update mysql.tidb_global_task set state='running' where id=?", taskID) |
Copilot uses AI. Check for mistakes.
tk.MustExec(fmt.Sprintf("update mysql.tidb_background_subtask set state='pending' where state='failed' and task_key= %d", taskID)) | ||
tk.MustExec(fmt.Sprintf("update mysql.tidb_global_task set state='running' where id = %d", taskID)) |
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 task ID is being used directly in the SQL query, which could lead to SQL injection vulnerabilities. Use parameterized queries to avoid potential issues.
tk.MustExec(fmt.Sprintf("update mysql.tidb_background_subtask set state='pending' where state='failed' and task_key= %d", taskID)) | |
tk.MustExec(fmt.Sprintf("update mysql.tidb_global_task set state='running' where id = %d", taskID)) | |
tk.MustExec("update mysql.tidb_background_subtask set state='pending' where state='failed' and task_key= ?", taskID) | |
tk.MustExec("update mysql.tidb_global_task set state='running' where id = ?", taskID) |
Copilot uses AI. Check for mistakes.
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.
/hold
free to unhold
/unhold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lance6716, tangenta, yudongusa 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 |
@D3Hunter: 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-sigs/prow repository. |
/retest |
@D3Hunter: 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-sigs/prow repository. |
/retest |
@D3Hunter: 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-sigs/prow repository. |
/retest |
@D3Hunter: 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-sigs/prow repository. |
What problem does this PR solve?
Issue Number: ref #59640
Problem Summary:
What changed and how does it work?
extra_params
field to task system tables to store extra params used by the frameworkManualRecovery
, when enabled, the task will move toawaiting-resolution
state when some subtask failCheck List
Tests
Side effects
Documentation
Release note
Please refer to Release Notes Language Style Guide to write a quality release note.