-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Remove deprecated API AdvancedColumnFamilyOptions::soft_rate_limit #9451
Conversation
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
dc305df
to
6be2b44
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
A small comment: be aware that PR title will become commit title after it is merged. Commit title is permanent. When later RocksDB developers blame the code or try to find history, they look at the commit title. So write your PR title and description so that any RocksDB developer could understand it after 3 years or 5 years. In my opinion, "[TechDebt]" is not very helpful there, as well as "[1/3]". |
Good call - fixing it! |
@hx235 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
HISTORY.md
Outdated
@@ -4,6 +4,7 @@ | |||
* Remove HDFS support from main repo. | |||
* Remove librados support from main repo. | |||
* Remove deprecated API DB::AddFile from main repo. | |||
* Remove deprecated API AdvancedColumnFamilyOptions::soft_rate_limit |
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.
Thanks for being the first to drop "from main repo".
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.
(time to see who merge it first #9454
8ad8d99
to
76f011a
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
76f011a
to
adaf586
Compare
@hx235 has updated the pull request. You must reimport the pull request before landing. |
Update:
|
@hx235 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Close this to combine with #9452 for less rebasing efforts |
Context/Summary:
AdvancedColumnFamilyOptions::soft_rate_limit
has been marked as deprecated since 4.4.0 (2016-01-14) and it's time to actually remove the code.soft_rate_limit
incf_mutable_options_type_info
to prevent throwingInvalidArgument
inGetColumnFamilyOptionsFromMap
when reading an option file still withsoft_rate_limit
(e.g, old option file generated from RocksDB before thissoft_rate_limit
deprecation)soft_rate_limit
in underOptionsOldApiTest
to test the case mentioned above.Test:
Rely on my eyeball and CI