I changed the configuration in pulsar’s configuration file broker.conf to
brokerDeleteInactiveTopicsEnabled: true
brokerDeleteInactiveTopicsMode: delete_when_no_subscriptions
brokerDeleteInactiveTopicsMaxInactiveDurationSeconds: 120
Then I restarted pulsar’s docker container and sent a message to the topic “persistent://t_test/proj_test/web_hook_test”, but when time passed, the topic was not removed and the admin rest api could query the topic information.
This topic does not have subscribers and the data returned by queries through the interface “/admin/v2/persistent/t_test/proj_test/web_hook_test/subscriptions” is empty
I want to clean up inactive topics with pulsar’s auto-delete policy
River1111 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.