-
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
Allow plain table to store index on file with bloom filter disabled #1525
Conversation
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.
Thanks @siying for fixing that !
@@ -308,7 +308,7 @@ Status PlainTableReader::PopulateIndex(TableProperties* props, | |||
index_in_file &= s.ok(); |
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.
So now index_in_file will be false even if the index block is in file but the bloom block is not ?
Does that mean that we don't get any benefit from storing the index in file ?
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.
Good point. Let me fix it.
@siying has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
@siying updated the pull request - view changes - changes since last import |
@siying updated the pull request - view changes - changes since last import |
Some changes to make it the code easier to understand. |
@siying updated the pull request - view changes - changes since last import |
Revert a previous change in test, which is not needed now. |
Summary: Currently plain table bloom filter is required if storing metadata on file. Remove the constraint. Test Plan: Add a unit test.
@siying updated the pull request - view changes - changes since last import |
asan, ubsan failure, and the Travis failure don't seem to be related. |
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, Thanks @siying
Summary: Currently plain table bloom filter is required if storing metadata on file. Remove the constraint. Closes #1525 Differential Revision: D4190977 Pulled By: siying fbshipit-source-id: be60442
Summary:
Currently plain table bloom filter is required if storing metadata on file. Remove the constraint.
Test Plan: Relax existing unit test to cover this scenario.