Skip to content

Allow plain table to store index on file with bloom filter disabled#1525

Closed
siying wants to merge 1 commit intofacebook:masterfrom
siying:plain_fix
Closed

Allow plain table to store index on file with bloom filter disabled#1525
siying wants to merge 1 commit intofacebook:masterfrom
siying:plain_fix

Conversation

@siying
Copy link
Copy Markdown
Contributor

@siying siying commented Nov 16, 2016

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.

Copy link
Copy Markdown
Contributor

@IslamAbdelRahman IslamAbdelRahman left a 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 !

Copy link
Copy Markdown
Contributor

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 ?

Copy link
Copy Markdown
Contributor Author

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.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@siying updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@siying updated the pull request - view changes - changes since last import

@siying
Copy link
Copy Markdown
Contributor Author

siying commented Nov 17, 2016

Some changes to make it the code easier to understand.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@siying updated the pull request - view changes - changes since last import

@siying
Copy link
Copy Markdown
Contributor Author

siying commented Nov 17, 2016

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.
@facebook-github-bot
Copy link
Copy Markdown
Contributor

@siying updated the pull request - view changes - changes since last import

@siying
Copy link
Copy Markdown
Contributor Author

siying commented Nov 17, 2016

asan, ubsan failure, and the Travis failure don't seem to be related.

Copy link
Copy Markdown
Contributor

@IslamAbdelRahman IslamAbdelRahman left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks @siying

IslamAbdelRahman pushed a commit that referenced this pull request Nov 17, 2016
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants