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

Revert "Digest ZSTD compression dictionary once per SST file (#4251)" #4347

Closed
wants to merge 2 commits into from

Conversation

ajkr
Copy link
Contributor

@ajkr ajkr commented Sep 5, 2018

Reverting is needed to unblock a user building against master, who is blocked for multiple days due to a thread-safety issue in GetEmptyDict. We haven't been able to fix it quickly, so reverting.

Simply ran git revert 6c40806e51a89386d2b066fddf73d3fd03a36f65. There were no merge conflicts.

Test Plan: make check -j64

Copy link
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.

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

Copy link
Contributor

@anand1976 anand1976 left a comment

Choose a reason for hiding this comment

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

LGTM. Were the thread safety issues because GetEmptyDict() is static?

@ajkr
Copy link
Contributor Author

ajkr commented Sep 5, 2018

Yes, the first calls to GetEmptyDict can happen simultaneously in multiple threads, which means Init might be called multiple times on the static object.

@ajkr
Copy link
Contributor Author

ajkr commented Sep 5, 2018

std::call_once for the Init did not satisfy TSAN. It still complained about the constructor and the Init racing when they happen in different threads.

Copy link
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.

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

Copy link
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.

ajkr is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

rcane pushed a commit to rcane/rocksdb that referenced this pull request Sep 13, 2018
…k#4251)" (facebook#4347)

Summary:
Reverting is needed to unblock a user building against master, who is blocked for multiple days due to a thread-safety issue in `GetEmptyDict`. We haven't been able to fix it quickly, so reverting.

Simply ran `git revert 6c40806`. There were no merge conflicts.
Pull Request resolved: facebook#4347

Differential Revision: D9668365

Pulled By: ajkr

fbshipit-source-id: 0c56334f0a23cf5ee0233d4e4679eae6709739cd
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.

None yet

3 participants