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

Return exit code 1 when pulsar-admin commands fail #20485

Closed
1 of 2 tasks
SpencerC opened this issue Jun 4, 2023 · 7 comments · Fixed by #20503
Closed
1 of 2 tasks

Return exit code 1 when pulsar-admin commands fail #20485

SpencerC opened this issue Jun 4, 2023 · 7 comments · Fixed by #20503
Assignees
Labels
area/cli type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Comments

@SpencerC
Copy link

SpencerC commented Jun 4, 2023

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

Run bin/pulsar-admin sources create --source-config-file doesnotexist.yaml && echo $?. The output clearly shows an error, but renders a success return code.

I just spent an hour debugging what turned out to be a spelling error. 😝

Solution

No response

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@SpencerC SpencerC added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Jun 4, 2023
@JooHyukKim
Copy link
Contributor

@SpencerC Are you working on this now?

@SpencerC
Copy link
Author

SpencerC commented Jun 5, 2023

Not at the moment

@JooHyukKim
Copy link
Contributor

@SpencerC May I ask you to lemme know if you don't plan on solving this issue? 🙏🏼🙏🏼 I have some spare time and would like to try this out if ever.

@tisonkun
Copy link
Member

tisonkun commented Jun 5, 2023

Since @SpencerC doesn't tick the " I'm willing to submit a PR!", I believe @JooHyukKim you can continue to work on this ticket.

@JooHyukKim
Copy link
Contributor

Since @SpencerC doesn't tick the " I'm willing to submit a PR!", I believe @JooHyukKim you can continue to work on this ticket.

I see, I assumed the checkbox was checked only because it existed 😅 Thank you @tisonkun !

@tisonkun
Copy link
Member

tisonkun commented Jun 5, 2023

I assumed the checkbox was checked only because it existed

That can be the case sometimes (or often), lol.

@SpencerC
Copy link
Author

SpencerC commented Jun 5, 2023

Thanks! I don't know the codebase that well yet, and thought this might be trivially easy for someone who did.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/cli type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
3 participants