summeriiii commented on issue #23239:
URL: https://github.com/apache/pulsar/issues/23239#issuecomment-2326787134

   hi, I reproduce this case follow your step, and I found this case might 
within expectation.
   When use `./bin/pulsar-admin topics unload $TOPIC` command to unload the 
topic, the NonDurable subscription will be cleaned. So when the consumer 
reconnected to the broker,  the broker will create a new non-durable cursor, 
the code detail is in `PersistentTopic#getNonDurableSubscription`.
   As shown in the screenshot, the entryId will be reduced by 1, which results 
in topic stats msgBacklog being 1 instead of 0. 
   ![image 
(2)](https://github.com/user-attachments/assets/a1d40655-be06-4cc9-bce3-8983a5e13edc)
   


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