-
Notifications
You must be signed in to change notification settings - Fork 719
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
server: Fix the bug that infinite TTL for service safepoint doesn't work (#3138) #3143
server: Fix the bug that infinite TTL for service safepoint doesn't work (#3138) #3143
Conversation
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
/merge |
@nolouch: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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 tidb-community-bots/prow-config repository. |
Can merge label has been added. Git tree hash: b2135a6
|
/run-integration-ddl-test |
/merge |
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests 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 tidb-community-bots/prow-config repository. |
cherry-pick #3138 to release-4.0
Signed-off-by: MyonKeminta MyonKeminta@users.noreply.github.com
Fix infinite TTL doesn't work
Signed-off-by: MyonKeminta MyonKeminta@users.noreply.github.com
What problem does this PR solve?
Fixes #3128
What is changed and how it works?
In the original code the expire time of service safepoints are calculated by
time.Unit() + TTL
, and we use MaxInt64 to represent infinite TTL. Then it overflows to a minus value and expires immediately. This PR fixes the issue.Check List
Tests
Code changes
Side effects
Related changes
Release note