-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Add avoid_flush_during_shutdown DB option #1451
Conversation
cc @benrnd |
@yiwu-arbug has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
@yiwu-arbug has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
aa60cbf
to
47da936
Compare
@yiwu-arbug updated the pull request - view changes - changes since last import |
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, but can you please clarify the comment about data loss in cases where WAL is enabled?
### Public API Change | ||
|
||
### New Features | ||
* Add avoid_flush_during_shutdown option, which speeds up DB shutdown by not flushing unpersisted data. Use it only when data loss is acceptable. The options is dynamically changeable. |
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.
if WAL is enabled, shouldn't there be no data loss?
47da936
to
aeee7d5
Compare
@yiwu-arbug updated the pull request - view changes - changes since last import |
aeee7d5
to
f75bb19
Compare
@yiwu-arbug updated the pull request - view changes - changes since last import |
Comment updated. @ajkr any more comments? |
Summary: Add avoid_flush_during_shutdown DB option. Test Plan: See the new unit test.
f75bb19
to
95c1380
Compare
Rebase. |
@yiwu-arbug updated the pull request - view changes - changes since last import |
Approved. Please merge after all tests pass. |
Summary:
Add avoid_flush_during_shutdown DB option.
Test Plan:
See the new unit test.