-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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::rate_limit_delay_max_milliseconds #9455
Remove deprecated API AdvancedColumnFamilyOptions::rate_limit_delay_max_milliseconds #9455
Conversation
Rebase and merge after #9452 |
2ee2656
to
74cf86b
Compare
options/cf_options.cc
Outdated
{"rate_limit_delay_max_milliseconds", | ||
{0, OptionType::kUInt, OptionVerificationType::kDeprecated, | ||
OptionTypeFlags::kNone}}, |
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 guess we need to leave this. Apparently kDeprecated
in this context means unsupported or removed.
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.
Good catch - same for my other PR too.
74cf86b
to
62ae476
Compare
@hx235 has imported this pull request. If you are a Meta 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
62ae476
to
1c43c91
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. |
1c43c91
to
2f8faff
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. |
Rebase onto upstream/main for clean CI test |
2f8faff
to
9fd135d
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. |
9fd135d
to
cb90837
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. |
Context/Summary:
AdvancedColumnFamilyOptions::rate_limit_delay_max_milliseconds has been marked as deprecated and it's time to actually remove the code.
soft_rate_limit
/hard_rate_limit
incf_mutable_options_type_info
to prevent throwingInvalidArgument
inGetColumnFamilyOptionsFromMap
when reading an option file still with these options (e.g, old option file generated from RocksDB before the deprecation)soft_rate_limit
/hard_rate_limit
in underOptionsOldApiTest.GetOptionsFromMapTest
to test the case mentioned above.Test:
Rely on my eyeball and CI