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

Add avoid_flush_during_shutdown DB option #1451

Closed
wants to merge 1 commit into from

Conversation

yiwu-arbug
Copy link
Contributor

Summary:
Add avoid_flush_during_shutdown DB option.

Test Plan:
See the new unit test.

@yiwu-arbug
Copy link
Contributor Author

cc @benrnd

@facebook-github-bot
Copy link
Contributor

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

1 similar comment
@facebook-github-bot
Copy link
Contributor

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

@facebook-github-bot
Copy link
Contributor

@yiwu-arbug updated the pull request - view changes - changes since last import

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

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?

@facebook-github-bot
Copy link
Contributor

@yiwu-arbug updated the pull request - view changes - changes since last import

@facebook-github-bot
Copy link
Contributor

@yiwu-arbug updated the pull request - view changes - changes since last import

@yiwu-arbug
Copy link
Contributor Author

Comment updated. @ajkr any more comments?

Summary:
Add avoid_flush_during_shutdown DB option.

Test Plan:
See the new unit test.
@yiwu-arbug
Copy link
Contributor Author

Rebase.

@facebook-github-bot
Copy link
Contributor

@yiwu-arbug updated the pull request - view changes - changes since last import

@yiwu-arbug
Copy link
Contributor Author

ping @siying @ajkr

@siying
Copy link
Contributor

siying commented Nov 2, 2016

Approved. Please merge after all tests pass.

@yiwu-arbug yiwu-arbug deleted the unpersistent branch November 2, 2016 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants