truong-hua opened a new issue, #15881:
URL: https://github.com/apache/pulsar/issues/15881

   **Describe the bug**
   I'm using Pulsar 2.10.0 with 
`brokerDeleteInactivePartitionedTopicMetadataEnabled=true` and 
`allowAutoTopicCreationType=partitioned`. We disabled the 
`brokerDeleteInactiveTopicsEnabled` at broker level and enabled it in namespace 
level with this inactive topic policy: `{"inactiveTopicDeleteMode": 
"delete_when_subscriptions_caught_up", "maxInactiveDurationSeconds": 3600, 
"deleteWhileInactive": true}`.
   
   We also have some functions keep running all the time with regex 
subscriptions.
   
   Full settings:
   
   ```
   allowAutoTopicCreationType=partitioned
   brokerDeleteInactivePartitionedTopicMetadataEnabled=true
   brokerDeleteInactiveTopicsEnabled=false
   clusterName=mycluster
   configurationMetadataStoreUrl=zookeeper:2181
   forceDeleteNamespaceAllowed=true
   forceDeleteTenantAllowed=true
   functionsWorkerEnabled=false
   managedLedgerDefaultAckQuorum=2
   managedLedgerDefaultEnsembleSize=3
   managedLedgerDefaultWriteQuorum=3
   metadataStoreUrl=zookeeper:2181
   numHttpServerThreads=32
   numIOThreads=8
   systemTopicEnabled=true
   topicLevelPoliciesEnabled=true
   ```
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1. Deploy a pulsar 2.10.0 with these settings above:
   2. Produce some messages to random topic (pulsar will auto create these new 
partitioned topics)
   3. Wait for few hours later
   4. These inactive topics are still there
   
   **Expected behavior**
   The inactive topics are deleted properly
   
   **Desktop (please complete the following information):**
    - OS: Linux
   
   **Additional question**
   Is it possible to force the inactive topic cleaner to run immediately via 
REST api or admin cli? This feature is risky because it can cause data lost so 
I think it is better if we can provide enough tools to verify.
   


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