Skip to content

[Bug] Namespace admin cli clear-backlog can not clear unloaded topics' backlog #20706

Description

@zhanghaou

Search before asking

  • I searched in the issues and found nothing similar.

Version

3.0.0 and current master version.

Minimal reproduce step

  1. setup a standalone cluster, and disable inactive topic auto delete.
  2. create a namespace public/test, and create a topic public/test/test, and then create a sub for public/test/test
  3. use pulsar-pref to produce some message to public/test/test
  4. close all producers and consumers to public/test/test
  5. unload public/test: pulsar-admin namespaces unload public/test
  6. use namespace admin: pulsar-admin namespaces clear-backlog public/test

What did you expect to see?

All topics' backlogs in namespace public/test can be deleted.

What did you see instead?

And then, use lookup admin cli to public/test/test.
Wait for 5 mins, use pulsar-admin topics stats pubic/test/test.
backlog is not 0.

Anything else?

When namespace bundle is unloaded, topics in this bundle can not clear backlog.

I'm not sure if it's by design or a system bug.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Staletype/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