Skip to content
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

Fb 9718 verify checksums is ignored #9767

Closed

Conversation

alanpaxton
Copy link
Contributor

Fixes #9718

The verify_checksums flag of read_options should be passed to the read options used by the BlockFetcher in a couple of cases where it is not at present. It will now happen (but did not, previously) on iteration and on [multi]get, where a fetcher is created as part of the iterate/get call.

This may result in much better performance in a few workloads where the client chooses to remove verification.

Having proved that the code gets called and that the statistic we update is reflected at the Java API, we can get going with a fix.
Some is invoked by the reading that is done for iteration. What happens if the DB is cached ?
@alanpaxton alanpaxton force-pushed the fb-9718-verify-checksums-is-ignored branch from 4827128 to ea79a6c Compare March 29, 2022 11:46
@facebook-github-bot
Copy link
Contributor

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

Copy link
Contributor

@jay-zhuang jay-zhuang left a comment

Choose a reason for hiding this comment

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

LGTM

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.

verify_checksums is ignored in rocksdbjni
3 participants