poorbarcode opened a new pull request, #24975:
URL: https://github.com/apache/pulsar/pull/24975

   ### Motivation
   
   1. Create two clusters: `["c1", "c2"]`,  enable Geo-Replication `c1 -> c2`
   2. Create a partitioned topic on both clusters.
   3. On cluster `c2`: the response of `pulsar-admin topics stats <topic>` 
shows no consumers/producers connected.
   4. On cluster `c2`: Call `pulsar-admin topics delete-partitioned-topic 
<topic>` will get the following error
   
   ```
   pulsar-admin topics delete-partitioned-topic public/default/test-topic-1
   2025-11-11T13:30:19,725+0000 [AsyncHttpClient-9-2] WARN  
org.apache.pulsar.client.admin.internal.BaseResource - 
[http://local:8080/admin/v2/persistent/public/default/test-topic-1/partitions?force=false&deleteSchema=true]
 Failed to perform http delete request: javax.ws.rs.ClientErrorException: HTTP 
412 {"reason":"Topic has active producers/subscriptions"}
   ```
   
   Root cause: there is a replicator connected(from the cluster `c1`)
   
   ### Modifications
   
   Improve the log
   - before: `Topic has active producers/subscriptions`
   - after: `Topic has active clients connected, including {num} consumers, 
{num} producers, {num} replicators`
   
   
   ### Documentation
   
   <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
   
   - [ ] `doc` <!-- Your PR contains doc changes. -->
   - [ ] `doc-required` <!-- Your PR changes impact docs and you will update 
later -->
   - [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
   - [ ] `doc-complete` <!-- Docs have been already added -->
   
   ### Matching PR in forked repository
   
   PR in forked repository: x
   


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