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

Disable snapshot refresh feature when snap_refresh_nanos is 0 #5724

Closed
wants to merge 1 commit into from

Conversation

maysamyabandeh
Copy link
Contributor

The comments of snap_refresh_nanos advertise that the snapshot refresh feature will be disabled when the option is set to 0. This contract is however not honored in the code: #5278
The patch fixes that and also adds an assert to ensure that the feature is not used when the option is zero.

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.

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

@facebook-github-bot
Copy link
Contributor

@maysamyabandeh has updated the pull request. Re-import the pull request

@facebook-github-bot
Copy link
Contributor

@maysamyabandeh has updated the pull request. Re-import the pull request

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.

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

@siying
Copy link
Contributor

siying commented Aug 20, 2019

I didn't see "test plan" in PR summary. What's your test plan?

Copy link
Contributor

@siying siying left a comment

Choose a reason for hiding this comment

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

The change is OK, but we need a convincing test plan. Maybe a unit test scenario.

@maysamyabandeh
Copy link
Contributor Author

The added assert statement is the test plan. It caught the existing bug and also another one in the unit tests where snap_refresh_time_ was set to zero, interpreting that as no delay instead of disabled feature.

@siying
Copy link
Contributor

siying commented Aug 20, 2019

@maysamyabandeh OK then.

@facebook-github-bot
Copy link
Contributor

@maysamyabandeh merged this pull request in 7bc18e2.

maysamyabandeh pushed a commit that referenced this pull request Aug 20, 2019
Summary:
The comments of snap_refresh_nanos advertise that the snapshot refresh feature will be disabled when the option is set to 0. This contract is however not honored in the code: #5278
The patch fixes that and also adds an assert to ensure that the feature is not used when the option  is zero.
Pull Request resolved: #5724

Differential Revision: D16918185

Pulled By: maysamyabandeh

fbshipit-source-id: fec167287df7d85093e087fc39c0eb243e3bbd7e
maysamyabandeh pushed a commit that referenced this pull request Aug 20, 2019
Summary:
The comments of snap_refresh_nanos advertise that the snapshot refresh feature will be disabled when the option is set to 0. This contract is however not honored in the code: #5278
The patch fixes that and also adds an assert to ensure that the feature is not used when the option  is zero.
Pull Request resolved: #5724

Differential Revision: D16918185

Pulled By: maysamyabandeh

fbshipit-source-id: fec167287df7d85093e087fc39c0eb243e3bbd7e
maysamyabandeh pushed a commit that referenced this pull request Sep 17, 2019
Summary:
The comments of snap_refresh_nanos advertise that the snapshot refresh feature will be disabled when the option is set to 0. This contract is however not honored in the code: #5278
The patch fixes that and also adds an assert to ensure that the feature is not used when the option  is zero.
Pull Request resolved: #5724

Differential Revision: D16918185

Pulled By: maysamyabandeh

fbshipit-source-id: fec167287df7d85093e087fc39c0eb243e3bbd7e
maysamyabandeh pushed a commit that referenced this pull request Sep 18, 2019
Summary:
The comments of snap_refresh_nanos advertise that the snapshot refresh feature will be disabled when the option is set to 0. This contract is however not honored in the code: #5278
The patch fixes that and also adds an assert to ensure that the feature is not used when the option  is zero.
Pull Request resolved: #5724

Differential Revision: D16918185

Pulled By: maysamyabandeh

fbshipit-source-id: fec167287df7d85093e087fc39c0eb243e3bbd7e
maysamyabandeh pushed a commit to maysamyabandeh/rocksdb that referenced this pull request Sep 18, 2019
Revert "Allow users to stop manual compactions (facebook#3971)"

This reverts commit 6226830.

Deprecate snap_refresh_nanos feature

Revert "Disable snapshot refresh feature when snap_refresh_nanos is 0 (facebook#5724)"

This reverts commit dd757ff.

Revert "Declare snapshot refresh incompatible with delete range (facebook#5625)"

This reverts commit fdc56e2.

Revert "Disable refresh snapshot feature by default (facebook#5606)"

This reverts commit cfd6eb3.

Revert snapshot refresh feature

deprecate the option

Revert "Revert "Allow users to stop manual compactions (facebook#3971)""

This reverts commit 6194c8f70b141899f66d777a7b1749ac346770c4.
merryChris pushed a commit to merryChris/rocksdb that referenced this pull request Nov 18, 2019
…ok#5724)

Summary:
The comments of snap_refresh_nanos advertise that the snapshot refresh feature will be disabled when the option is set to 0. This contract is however not honored in the code: facebook#5278
The patch fixes that and also adds an assert to ensure that the feature is not used when the option  is zero.
Pull Request resolved: facebook#5724

Differential Revision: D16918185

Pulled By: maysamyabandeh

fbshipit-source-id: fec167287df7d85093e087fc39c0eb243e3bbd7e
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