Skip to content

Support disallow_memtable_writes for default CF #13513

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pdillinger
Copy link
Contributor

Summary: in follow-up to #13489 and #13431

Because this feature is relatively simple and of the "protecting users from themselves" variety, I think we can call it production-ready. Release note added (none last time).

Test Plan: unit tests updated

Summary: in follow-up to facebook#13489 and facebook#13431

Because this feature is relatively simple and of the "protecting users
from themselves" variety, I think we can call it production-ready.
Release note added (none last time).

Test Plan: unit tests updated
@facebook-github-bot
Copy link
Contributor

@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

Copy link
Contributor

@anand1976 anand1976 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally LGTM. But isn't it fairly easy to flag a WriteBatch with writes to the default CF in WriteBatchInternal::GetColumnFamilyIdAndTimestampSize(), and lazily reject it before attempting to insert into the memtable and triggering the error handling behavior?

@pdillinger
Copy link
Contributor Author

It looks like I was too eager to avoid an "extra" check that we're mostly paying for already. I'll modify it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants