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

[pulsar-admin] Modify exception of set-properties for namespace #12436

Merged
merged 1 commit into from
Nov 1, 2021
Merged

[pulsar-admin] Modify exception of set-properties for namespace #12436

merged 1 commit into from
Nov 1, 2021

Conversation

yuruguo
Copy link
Contributor

@yuruguo yuruguo commented Oct 20, 2021

Motivation

when I execute ./pulsar-admin namespaces set-properties --properties a=a=b test/app1 , a prompt as below:

java.lang.IllegalArgumentException: Invalid key value pair format.
	at org.apache.pulsar.admin.cli.CmdNamespaces$SetPropertiesForNamespace.run(CmdNamespaces.java:2199)
	at org.apache.pulsar.admin.cli.CmdBase.run(CmdBase.java:86)
	at org.apache.pulsar.admin.cli.PulsarAdminTool.run(PulsarAdminTool.java:282)
	at org.apache.pulsar.admin.cli.PulsarAdminTool.main(PulsarAdminTool.java:329)

we hope to display a readable prompt of set-properties for namespace when exception occurs.

Modifications

  • Chage IllegalArgumentException to ParameterException

Documentation

  • no-need-doc

@eolivelli eolivelli added the doc-not-needed Your PR changes do not impact docs label Oct 20, 2021
@codelipenghui codelipenghui added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Oct 24, 2021
@codelipenghui codelipenghui added this to the 2.10.0 milestone Oct 24, 2021
@315157973 315157973 merged commit cd9a65e into apache:master Nov 1, 2021
hangc0276 pushed a commit that referenced this pull request Nov 4, 2021
when I execute ./pulsar-admin namespaces set-properties --properties a=a=b test/app1
we hope to display a readable prompt of set-properties for namespace when exception occurs.
Modifications
Change IllegalArgumentException to ParameterException

(cherry picked from commit cd9a65e)
@hangc0276 hangc0276 added the cherry-picked/branch-2.8 Archived: 2.8 is end of life label Nov 4, 2021
eolivelli pushed a commit to eolivelli/pulsar that referenced this pull request Nov 29, 2021
…he#12436)

when I execute ./pulsar-admin namespaces set-properties --properties a=a=b test/app1 
we hope to display a readable prompt of set-properties for namespace when exception occurs.
Modifications
Change IllegalArgumentException to ParameterException
codelipenghui pushed a commit that referenced this pull request Dec 20, 2021
when I execute ./pulsar-admin namespaces set-properties --properties a=a=b test/app1
we hope to display a readable prompt of set-properties for namespace when exception occurs.
Modifications
Change IllegalArgumentException to ParameterException

(cherry picked from commit cd9a65e)
@codelipenghui codelipenghui added the cherry-picked/branch-2.9 Archived: 2.9 is end of life label Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin cherry-picked/branch-2.8 Archived: 2.8 is end of life cherry-picked/branch-2.9 Archived: 2.9 is end of life doc-not-needed Your PR changes do not impact docs release/2.8.2 release/2.9.2 type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants