-
Notifications
You must be signed in to change notification settings - Fork 417
Add IsProductionSafe to Blockstore metadata [v2] #9839
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
idanovo
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.
I'm not sure how come the local store is production safe, maybe I'm missing something
| func (l *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.
How come the local adapter is production safe?
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.
We do have a bunch of customers using local adapter in Prod.
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.
😱
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.
This is about trying to fix OSS integration in Enterprise.
Might be reverted soon.
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.
Also here, fixing Enterprise E2E.
Closes #8681.
Recreates #9822 (for technical reasons).
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.