-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Steps toward making IDENTITY file obsolete #13019
Conversation
Summary: * Set write_dbid_to_manifest=true by default * Add new option write_identity_file (default true) that allows us to opt-in to future behavior without identity file * Refactor related DB open code to minimize code duplication Test Plan: unit tests updated for new functionality
@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
@pdillinger has updated the pull request. You must reimport the pull request before landing. |
@pdillinger has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
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.
LGTM. Does it make sense to add an API and/or ldb command for a user to to read the DB ID? The IDENTITY file is human readable.
There is DB::GetDbIdentity(), but yes there should be ldb command to read and even overwrite the DB identity. I'll note that as intended follow-up before disabling identity file by default. |
@pdillinger merged this pull request in 98c33cb. |
Summary:
Recommend hiding whitespace changes for review
Intended follow-up: add support to ldb for reading and even replacing the DB identity in the manifest. Could be a variant of
update_manifest
command or based on it.Test Plan: unit tests and stress test updated for new functionality