-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[improve][cli] improve admin set-backlog-quota
more clear
#19300
[improve][cli] improve admin set-backlog-quota
more clear
#19300
Conversation
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
@@ -977,8 +977,8 @@ private class SetBacklogQuota extends CliCommand { | |||
private String policyStr; | |||
|
|||
@Parameter(names = {"-t", "--type"}, description = "Backlog quota type to set. Valid options are: " | |||
+ "destination_storage and message_age. " | |||
+ "destination_storage limits backlog by size (in bytes). " | |||
+ "destination_storage (default) and message_age. " |
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.
The default is backlog size, right?
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.
Yes
Fixes #19196
Motivation
The parameters of backlog retention policies need to be clarified. Size limit is only useful in
destination_storage
and time limit is only useful inmessage_age
.Modifications
--limit
optional, becausemessage_age
doesn't need this parameter but this parameter isrequired
now.message_age
, use the time limit and ignore the size limit. When the quota type isdestination_storage
, use the size limit and ignore the time limit. Don't set them both, which can be confusing for users.Verifying this change
Does this pull request potentially affect one of the following parts:
If the box was checked, please highlight the changes
Documentation
doc
doc-required
doc-not-needed
doc-complete
doc update: apache/pulsar-site#394
Matching PR in forked repository
PR in forked repository: labuladong#19