Skip to content

Fix c_test:filter for various CACHE_LINE_SIZEs#6153

Closed
pdillinger wants to merge 1 commit intofacebook:masterfrom
pdillinger:filterpolicy-c-interface2
Closed

Fix c_test:filter for various CACHE_LINE_SIZEs#6153
pdillinger wants to merge 1 commit intofacebook:masterfrom
pdillinger:filterpolicy-c-interface2

Conversation

@pdillinger
Copy link
Copy Markdown
Contributor

@pdillinger pdillinger commented Dec 11, 2019

Summary: This test was recently updated but failed to account for Bloom
schema variance by CACHE_LINE_SIZE. (Since CACHE_LINE_SIZE is not
defined in our C code, the test now simply allows a valid result for any
CACHE_LINE_SIZE, not just the current one.)

Unblock #5932

Test Plan: ran unit test with builds TEST_CACHE_LINE_SIZE=128, =256, and
unset (64 on Intel)

Summary: This test was recently updated but failed to account for Bloom
schema variance by CACHE_LINE_SIZE. (Since CACHE_LINE_SIZE is not
defined in our C code, the test simply allows a valid result for any
CACHE_LINE_SIZE, not just the current one.)

Test Plan: ran unit test with builds TEST_CACHE_LINE_SIZE=128, =256, and
unset (64 on Intel)
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Contributor

@siying siying left a comment

Choose a reason for hiding this comment

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

I don't understand the detailed algorithm, but as long as it works.

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@pdillinger merged this pull request in d0ad3c5.

wolfkdy pushed a commit to wolfkdy/rocksdb that referenced this pull request Dec 22, 2019
Summary:
This test was recently updated but failed to account for Bloom
schema variance by CACHE_LINE_SIZE. (Since CACHE_LINE_SIZE is not
defined in our C code, the test now simply allows a valid result for any
CACHE_LINE_SIZE, not just the current one.)

Unblock facebook#5932
Pull Request resolved: facebook#6153

Test Plan:
ran unit test with builds TEST_CACHE_LINE_SIZE=128, =256, and
unset (64 on Intel)

Differential Revision: D18936015

Pulled By: pdillinger

fbshipit-source-id: e5e3852f95283d34d624632c1ae8d3adb2f2662c
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