shibd commented on issue #23003:
URL: https://github.com/apache/pulsar/issues/23003#issuecomment-2209762114

   > The reason is if topic loading timeout, the topic would close. However, 
topic close and takeSnapshot is executed concurrently, so takeSnapshot may 
throw exception since topic has been closed.
   
   Maybe we need add stats: (closing, closed) to avoid this concurrently 
behaviour.
   
   
https://github.com/apache/pulsar/blob/411f6973e85b0a6213e992386e1704f93d0aae42/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/MessageDeduplication.java#L61-L80
   
   By the way, when your service encounters this exception, does it recover 
automatically?
   
   Can you try to reproduce this behavior in this test? 
testCloseLedgerThatTopicAfterCreateTimeout


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to