-
Notifications
You must be signed in to change notification settings - Fork 138
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
CBG-3742: Allow registry rollbacks based on db config doc rollbacks #6709
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
ebc56f5
Extend startBootstrapServerWithoutConfigPolling polling interval
bbrks e83dc1c
tidy return
bbrks 48a115d
Use config from bucket to roll back if no previous version is found (…
bbrks d6c22ae
wip
bbrks c2c306b
Mark conflicting rollbacks as invalid in db registry and prevent load…
bbrks 0cc2656
Improve log message for invalid database configurations - handle mult…
bbrks 33d5116
Handle unknown reasons why a db could be invalid
bbrks d30d5fa
Do database repair via normal Admin REST API rather to ensure externa…
bbrks 20bafe5
Equal(len())->Len()
bbrks 9e27f19
Rename stat
bbrks 937cbd4
UD->MD fix
bbrks f482f2b
lower retry timeout for testing
bbrks b303ca9
Require 3 datastores
bbrks 3c7d226
Replace registry entry with one built from config
bbrks 0c72db5
Reword unexpected InvalidDatabase case
bbrks dccaeed
Push mutliDatabsaeRollback into subtest
bbrks 79c3c39
fix ineffassign
bbrks b0ff8c6
Fix non-deterministic slice ordering from RequireInvalidDatabaseConfi…
bbrks File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I think this will be logged upstream, but I think it would great to somewhere print the name of the registry / config docs and what collections are conflicting
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.
It's not feasible to do that here on load, but the warning log that occurred when the rollback set this invalid flag logs what collection(s) caused it.
Given the rollback that just happened, the customer probably doesn't want to change the non-rolled back database, so I'm not sure there's value in knowing which database this one conflicts with. The rollback is the problem that needs correcitng and we log the collection that needs removing.