-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
FlushMemTable return ok but memtable does not synchronize flush #8173
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.
I think this change is going to trigger a lot of failures in the "ASSERT_STATUS_CHECKED" cases.
A better approach may be to leave the code around line 2127 alone and add/copy line 2130-31 to around 2165.
@mrambacher , Thanks for the reminder. I did ignore ROCKSDB_ASSERT_STATUS_CHECKED. |
@zhuchong0329 this seems like a useful fix. Do you plan to try making it work with ASSERT_STATUS_CHECKED? I think you can get rid of all the early returns (e.g., L2125) and instead make them set |
@jay-zhuang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
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.
Fixed ASSERT_STATUS_CHECKED as @ajkr suggested.
What's our plan with this PR? @jay-zhuang |
@zhuchong0329 has updated the pull request. You must reimport the pull request before landing. |
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 too.
@jay-zhuang has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Fix #8046 : FlushMemTable return ok but memtable does not synchronize flush. The way to fix it is to expose RecoveryError.