-
Notifications
You must be signed in to change notification settings - Fork 3.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
release-22.1: sqlliveness: add timeouts to heartbeats #88807
release-22.1: sqlliveness: add timeouts to heartbeats #88807
Conversation
Thanks for opening a backport. Please check the backport criteria before merging:
If some of the basic criteria cannot be satisfied, ensure that the exceptional criteria are satisfied within.
Add a brief release justification to the body of your PR to justify this backport. Some other things to consider:
|
Previously, sqlliveness heartbeat operations could block on the transactions that were involved. This change introduces some timeouts of the length of the heartbeat during the create and refresh operations. Resolves cockroachdb#85541 Release note: None Release justification: low-risk bugfix to existing functionality
Release note: None
d93dbf2
to
5dccb42
Compare
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.
Reviewed 5 of 5 files at r1, 2 of 2 files at r2, 2 of 2 files at r3, all commit messages.
Reviewable status:complete! 1 of 0 LGTMs obtained (waiting on @aadityasondhi)
5dccb42
to
abff60b
Compare
Previously, the heartbeat timeouts were being set as the length of the heartbeat. This can cause issues when there is longer latency in the system and caused flaky tests. By making the heartbeat timout a fraction of the TTL, we are able to avoid timing out too early and also ensure that we can retry at least once before the seession expiry. Ran test with `--stress` to verify it doesn't flake: ``` 2559 runs so far, 0 failures, over 5m0s ``` Resolves: cockroachdb#88743 Release note: None
abff60b
to
25d0c32
Compare
Backport:
Please see individual PRs for details.
Release justification: low-risk bugfix to existing functionality
/cc @cockroachdb/release