zhouyifan279 commented on PR #24793:
URL: https://github.com/apache/pulsar/pull/24793#issuecomment-3375165360

   > what's the root cause of this issue ? race condition or ?
   
   The issue happens in following steps:
   1. There is a producer publishing to Topic.
   2. The connection between client and broker is closed.
   3. The pulsar-io thread which the connection belongs to is too busy to 
remove producer in `AbstractTopic#producers` before client requests to create 
producer again.
   4. New producer try to overwrite old producer and is waiting old producer's 
`ServerCnx#checkConnectionLiveness` to complete.
   5. Topic is unloaded.
   6. Old producer's `ServerCnx#checkConnectionLiveness` completes and new 
producer added to an unloaded topic.
   7. New producer starts to publish.


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