-
Notifications
You must be signed in to change notification settings - Fork 101
pdutil: use the correct unit for pausing schedulers #1466
base: master
Are you sure you want to change the base?
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
@@ -365,7 +365,7 @@ func (p *PdController) getStoreInfoWith( | |||
|
|||
func (p *PdController) doPauseSchedulers(ctx context.Context, schedulers []string, post pdHTTPRequest) ([]string, error) { | |||
// pause this scheduler with 300 seconds | |||
body, err := json.Marshal(pauseSchedulerBody{Delay: int64(pauseTimeout)}) | |||
body, err := json.Marshal(pauseSchedulerBody{Delay: int64(pauseTimeout.Seconds())}) |
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.
or use .Milliseconds() / 1000
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. do we need pick to 6.0?
@nolouch: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. 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 ti-community-infra/tichi repository. |
This is a manually cherry-picked pr as br code with version < 5.2 are still in this repo. |
What problem does this PR solve?
ref: pingcap/tidb#33546
What is changed and how it works?
cherry-pick pingcap/tidb#33545 to br
Check List
Tests
Code changes
Side effects
Related changes
Release note