Skip to content

[Bug] pulsar-admin topics skip-all not work #18525

@labuladong

Description

@labuladong

Search before asking

  • I searched in the issues and found nothing similar.

Version

Master branch.

Minimal reproduce step

I read doc: https://pulsar.apache.org/docs/next/admin-api-topics#skip-all-messages

Execute this command:

./pulsar-admin topics skip-all \
     --subscription java-subscription-aa my-topic-aaa

What did you expect to see?

Skip all messages of the subscription.

What did you see instead?

Expected a command, got skip-all

Invalid command, please use `pulsar-admin --help` to check out how to use
2022-11-18T05:22:03,186+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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions