massakam opened a new pull request #6851: URL: https://github.com/apache/pulsar/pull/6851
### Motivation We can automatically delete inactive subscriptions by setting `subscriptionExpirationTimeMinutes` in broker.conf to a value greater than 0. ```sh # How long to delete inactive subscriptions from last consuming # When it is 0, inactive subscriptions are not deleted automatically subscriptionExpirationTimeMinutes=0 ``` However, since this setting value applies to all topics, we have to set it to 0 if there is even one topic whose subscriptions should not be deleted. ### Modifications Enable users to set a subscription expiration time for each namespace. This value overrides `subscriptionExpirationTimeMinutes` in broker.conf. ```sh $ ./bin/pulsar-admin namespaces set-subscription-expiration-time --time 60 tenant1/ns1 $ ./bin/pulsar-admin namespaces get-subscription-expiration-time tenant1/ns1 60 ``` ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org