cockroach
cockroach copied to clipboard
sqlliveness: add timeouts to heartbeats
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 #85541
Release note: None
Release justification: low-risk bugfix to existing functionality
bors r=ajwerner
Thank you!
Can we get a 22.1 backport? CC serverless is running 22.1. Major upgrade can take some time in practice. The lack of these HBs has led to inactionable alerts hitting the pagers of our SREs.
Why do major upgrades lead to unavailability? I feel like I was missing some context on the motivation here.
Ah sorry for confusion!
Major upgrades don't lead to unavailability. The issue fixed by this PR has nothing to do with major upgrades. CC serverless is simply running 22.1, and I expect it'll take some time to move to 22.2, based on past experience with serverless major upgrades. As a result, I'd love it if we backport this change into 22.1, not just 22.2, so as to avoid reoccurrence of the issue fixed by this PR.