darinspivey commented on issue #22471:
URL: https://github.com/apache/pulsar/issues/22471#issuecomment-3085088684

   I'm also having this issue, but I can't seem to get it to work at all.  
Would having auto-topic creation policies have any negative consequences?  If I 
use these settings, and do the following, the topic is never deleted.  I've 
tried a combination of both `brokerDeleteInactiveTopicsFrequencySeconds` and 
`brokerDeleteInactiveTopicsMaxInactiveDurationSeconds`:
   
   1.  Create a namespace (just to be clean - it should inherit broker defaults)
   2. publish messages to a topic (topic is auto-created)
   3. No consumers.
   4. Wait several minutes
   
   ```
       brokerDeleteInactiveTopicsEnabled: 'true'
       brokerDeleteInactiveTopicsFrequencySeconds: '60'
       brokerDeleteInactiveTopicsMaxInactiveDurationSeconds: '60'
       brokerDeleteInactiveTopicsMode: delete_when_no_subscriptions
       brokerDeleteInactivePartitionedTopicMetadataEnabled: 'true'
       allowAutoTopicCreation: 'true'
       defaultNumPartitions: '8'
       allowAutoTopicCreationType: 'partitioned'
   ```


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to