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

[Bug] pulsar-admin script encountered error without providing full parameters #17761

Closed
1 of 2 tasks
gaozhangmin opened this issue Sep 21, 2022 · 6 comments
Closed
1 of 2 tasks
Assignees
Labels
Stale type/bug The PR fixed a bug or issue reported a bug

Comments

@gaozhangmin
Copy link
Contributor

gaozhangmin commented Sep 21, 2022

Search before asking

  • I searched in the issues and found nothing similar.

Version

Master

Minimal reproduce step

just run bin/pulsar-admin

What did you expect to see?

Main parameters are required ("persistent://tenant/namespace/topic")

Get the internal stats for the topic
Usage: stats-internal [options] persistent://tenant/namespace/topic
  Options:
    -m, --metadata
      Flag to include ledger metadata
      Default: false

What did you see instead?

Main parameters are required ("persistent://tenant/namespace/topic")

Get the internal stats for the topic
Usage: stats-internal [options] persistent://tenant/namespace/topic
  Options:
    -m, --metadata
      Flag to include ledger metadata
      Default: false

2022-09-21T14:18:44,043+0800 [main] WARN  org.apache.pulsar.common.util.ShutdownUtil - Triggering immediate shutdown of current process with status 1
java.lang.Exception: Stacktrace for immediate shutdown
	at org.apache.pulsar.common.util.ShutdownUtil.triggerImmediateForcefulShutdown(ShutdownUtil.java:52) ~[org.apache.pulsar-pulsar-common-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
	at org.apache.pulsar.admin.cli.PulsarAdminTool.exit(PulsarAdminTool.java:309) ~[org.apache.pulsar-pulsar-client-tools-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]
	at org.apache.pulsar.admin.cli.PulsarAdminTool.main(PulsarAdminTool.java:300) ~[org.apache.pulsar-pulsar-client-tools-2.11.0-SNAPSHOT.jar:2.11.0-SNAPSHOT]

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@gaozhangmin gaozhangmin added the type/bug The PR fixed a bug or issue reported a bug label Sep 21, 2022
@gaozhangmin gaozhangmin self-assigned this Sep 21, 2022
@nicoloboschi
Copy link
Contributor

@lhotari it's related to #17589

@tisonkun
Copy link
Member

@gaozhangmin what do you mean by "without providing full parameters"? From the issue description the only difference is the real manner contains extra logs.

@github-actions
Copy link

The issue had no activity for 30 days, mark with Stale label.

@github-actions github-actions bot added the Stale label Oct 22, 2022
@nicoloboschi
Copy link
Contributor

@tisonkun the issue is that if the pulsar-admin command exit with an error code, that stacktrace is printed out to the user. Will send a pr later today

@github-actions github-actions bot removed the Stale label Nov 11, 2022
@github-actions
Copy link

The issue had no activity for 30 days, mark with Stale label.

@tisonkun
Copy link
Member

tisonkun commented Jun 7, 2023

Should be fixed by #19884.

@tisonkun tisonkun closed this as completed Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

4 participants