-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
VTOrc: Rework recovery registration #15591
VTOrc: Rework recovery registration #15591
Conversation
Signed-off-by: Manan Gupta <[email protected]>
…tead Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
…k-period Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15591 +/- ##
==========================================
+ Coverage 67.41% 68.06% +0.64%
==========================================
Files 1560 1562 +2
Lines 192752 195368 +2616
==========================================
+ Hits 129952 132975 +3023
+ Misses 62800 62393 -407 ☔ View full report in Codecov by Sentry. |
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 cleanup is also really nice here as well.
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
Signed-off-by: Manan Gupta <[email protected]>
end_recovery timestamp NULL DEFAULT NULL, | ||
processing_node_hostname varchar(128) NOT NULL, | ||
processcing_node_token varchar(128) NOT NULL, |
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.
lol
Co-authored-by: Deepthi Sigireddi <[email protected]> Signed-off-by: Manan Gupta <[email protected]>
Description
This PR reworks the recovery registration. We do not need an active period for recoveries since VTOrc refreshes all the required information after acquiring a shard lock, and then checking again if the analysis is still valid. This rework also fixes the issue described in #15512 since we will no longer be waiting for recoveries that are in active period. The only recoveries we wait for now are the ones that are currently in progress.
While making this change, a lot of unused fields from tables, and a couple of unused tables have also been removed.
Related Issue(s)
DemotePrimary
fix delayed because of aPrimarySemiSyncMustBeSet
recovery attempt right before #15512Checklist
Deployment Notes