Skip to content

Fix an race condition during multiple DB opening#8574

Closed
jay-zhuang wants to merge 3 commits intofacebook:masterfrom
jay-zhuang:db_open_race
Closed

Fix an race condition during multiple DB opening#8574
jay-zhuang wants to merge 3 commits intofacebook:masterfrom
jay-zhuang:db_open_race

Conversation

@jay-zhuang
Copy link
Copy Markdown
Contributor

Summary: ObjectLibrary is shared between multiple DB instances, the
Register() could have race condition.

Test Plan: pass the failed test

Summary: ObjectLibrary is shared between multiple DB instances, the
Register() could have race condition.

Test Plan: pass the failed test
@jay-zhuang jay-zhuang marked this pull request as ready for review July 22, 2021 19:37
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

@ajkr ajkr left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Copy Markdown
Contributor

@mrambacher mrambacher 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!

@facebook-github-bot
Copy link
Copy Markdown
Contributor

@jay-zhuang merged this pull request in c4a503f.

jay-zhuang added a commit that referenced this pull request Jul 22, 2021
Summary:
ObjectLibrary is shared between multiple DB instances, the
Register() could have race condition.

Pull Request resolved: #8574

Test Plan: pass the failed test

Reviewed By: ajkr

Differential Revision: D29855096

Pulled By: jay-zhuang

fbshipit-source-id: 541eed0bd495d2c963d858d81e7eabf1ba16153c
azat pushed a commit to azat-archive/rocksdb that referenced this pull request Sep 26, 2021
Summary:
ObjectLibrary is shared between multiple DB instances, the
Register() could have race condition.

Pull Request resolved: facebook#8574

Test Plan: pass the failed test

Reviewed By: ajkr

Differential Revision: D29855096

Pulled By: jay-zhuang

fbshipit-source-id: 541eed0bd495d2c963d858d81e7eabf1ba16153c
(cherry picked from commit c4a503f)
azat added a commit to ClickHouse/rocksdb that referenced this pull request Sep 26, 2021
Backport: Fix an race condition during multiple DB opening (facebook#8574)
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.

4 participants