-
Notifications
You must be signed in to change notification settings - Fork 70
Add command unsubscribe and clearBacklog and command set and get for dispatch and subscribe and replicator rate #68
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
Conversation
sijie
left a comment
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.
Also please use consistent naming pattern for the files.
91685c6 to
469c48a
Compare
sijie
left a comment
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 only left one comment for each different type of comment. Please address the similar places based on my comments.
| func GetSubscriptionDispatchRateCmd(vc *cmdutils.VerbCmd) { | ||
| var desc LongDescription | ||
| desc.CommandUsedFor = "This command is used for getting subscription message-dispatch-rate for all subscriptions of a namespace." | ||
| desc.CommandPermission = "This command requires super-user permissions." |
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.
why this command needs super-user permissions?
| func SetDispatchRateCmd(vc *cmdutils.VerbCmd) { | ||
| var desc LongDescription | ||
| desc.CommandUsedFor = "This command is used for setting message-dispatch-rate for all topics of a namespace." | ||
| desc.CommandPermission = "This command requires super-user permissions." |
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.
same comment as above
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.
protected void internalSetTopicDispatchRate(DispatchRate dispatchRate) {
log.info("[{}] Set namespace dispatch-rate {}/{}", clientAppId(), namespaceName, dispatchRate);
validateSuperUserAccess();
In a broker, it will validate super-user access. Is it need to add the spreadsheet?
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 please add it to the spreadsheet.
| } | ||
|
|
||
| setByByte := Example{ | ||
| Desc: "Set the message-dispatch-rate by byte <rate> for all topics of namespace <namespace-name>", |
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.
so why you are adding <> around rate?
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.
Updated as Set the default message dispatch rate by bytes of a namespace to <rate>
469c48a to
a18b9f6
Compare
sijie
left a comment
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.
after fixing my comment, this change is ready to go.
| func SetDispatchRateCmd(vc *cmdutils.VerbCmd) { | ||
| var desc LongDescription | ||
| desc.CommandUsedFor = "This command is used for setting message-dispatch-rate for all topics of a namespace." | ||
| desc.CommandPermission = "This command requires super-user permissions." |
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 please add it to the spreadsheet.
…dispatch and subscirbe and replicator rate -- *Modifications* - Add command clear-backlog - Add command set-dispatch-rate - Add command get-dispatch-rate - Add command messages-encryption - Add command set-replicator-dispatch-rate - Add command get-replicator-dispatch-rate - Add command set-subscribe-rate - Add command get-subscribe-rate - Add command set-subscription-auth-mode - Add command set-subscription-dispatch-rate - Add command get-subscription-dispatch-rate - Add command unsubscribe
160e621 to
ae4c966
Compare
…dispatch and subscribe and replicator rate (streamnative/pulsarctl#68) * Add command unsubscribe and clearBacklog and command set and get for dispatch and subscirbe and replicator rate -- *Modifications* - Add command clear-backlog - Add command set-dispatch-rate - Add command get-dispatch-rate - Add command messages-encryption - Add command set-replicator-dispatch-rate - Add command get-replicator-dispatch-rate - Add command set-subscribe-rate - Add command get-subscribe-rate - Add command set-subscription-auth-mode - Add command set-subscription-dispatch-rate - Add command get-subscription-dispatch-rate - Add command unsubscribe
…dispatch and subscribe and replicator rate (streamnative/pulsarctl#68) * Add command unsubscribe and clearBacklog and command set and get for dispatch and subscirbe and replicator rate -- *Modifications* - Add command clear-backlog - Add command set-dispatch-rate - Add command get-dispatch-rate - Add command messages-encryption - Add command set-replicator-dispatch-rate - Add command get-replicator-dispatch-rate - Add command set-subscribe-rate - Add command get-subscribe-rate - Add command set-subscription-auth-mode - Add command set-subscription-dispatch-rate - Add command get-subscription-dispatch-rate - Add command unsubscribe
Modifications