-
Notifications
You must be signed in to change notification settings - Fork 417
Add IsProductionSafe to Blockstore metadata #9822
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
Conversation
N-o-Z
left a comment
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.
Not very excited about this approach - this could have been resolved with a simple hardcoded list of production ready adapters.
But this works so I'm not blocking.
Please see one comment
pkg/block/transient/adapter.go
Outdated
| func (a *Adapter) BlockstoreMetadata(_ context.Context) (*block.BlockstoreMetadata, error) { | ||
| return nil, block.ErrOperationNotSupported | ||
| return &block.BlockstoreMetadata{ | ||
| IsProductionSafe: true, |
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.
false
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.
Here's a bug that this fix has already discovered :)
|
Einat Aloni seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
Closes #8681.
This PR is used for Enterprise.
Change Description
Making production warning for blockstores part of the Blockstore Adapter metadata.
Testing Details
Tested the warning locally (appears for "mem", doesn't for other types).
Also, unit and integration tests in the blockstore area provide a pretty decent coverage.