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 topic auto deletion not work #22717

Open
3 tasks done
river1017 opened this issue May 15, 2024 · 5 comments
Open
3 tasks done

Pulsar topic auto deletion not work #22717

river1017 opened this issue May 15, 2024 · 5 comments
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@river1017
Copy link

river1017 commented May 15, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

Version 2.0

Minimal reproduce step

1.Edit pulsar broker.conf, add the following items:

brokerDeleteInactiveTopicsEnabled: true
brokerDeleteInactiveTopicsMode: delete_when_no_subscriptions
brokerDeleteInactiveTopicsMaxInactiveDurationSeconds: 600

aaa

  1. Restart Pulsar broker

  2. Add a topic with no subscriptions

  3. After 600s, we can still query the topic by using admin API

What did you expect to see?

The topic can be deleted

What did you see instead?

The topic still exists

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@river1017 river1017 added the type/bug The PR fixed a bug or issue reported a bug label May 15, 2024
@lhotari
Copy link
Member

lhotari commented May 15, 2024

Please report in English. @river1017 would you be able to translate the issue report? thanks

@dao-jun dao-jun changed the title pulsar的自动删除策略没有生效 Pulsar topic auto deletion not work May 15, 2024
@dao-jun
Copy link
Member

dao-jun commented May 15, 2024

Please report in English. @river1017 would you be able to translate the issue report? thanks

@lhotari I translated it

@dao-jun
Copy link
Member

dao-jun commented May 16, 2024

it seems not an issue, try set brokerDeleteInactivePartitionedTopicMetadataEnabled to true

@river1017
Copy link
Author

it seems not an issue, try set brokerDeleteInactivePartitionedTopicMetadataEnabled to true

Thanks for the answer, but I set brokerDeleteInactivePartitionedTopicMetadataEnabled and then restarted pulsar but it doesn't seem to work.Ten minutes after restarting, I could still get the topic without subscribers from the interface.
1716126757762

@lhotari
Copy link
Member

lhotari commented May 31, 2024

There's a limitation in the deleting inactive topics when it comes to completely unused topics. If the namespace bundle of the topic isn't active, the topics won't get deleted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

3 participants