idehong opened a new issue, #1365:
URL: https://github.com/apache/pulsar-client-go/issues/1365

   #### Expected behavior
   When calling producer.SendAsync to produce messages, it cannot be blocked 
and deadlock
   
   #### Actual behavior
   
   When calling producer.SendAsync to produce a message, an error occurs. The 
producer.Close interface is called in the callback of SendAsync, causing the 
process to deadlock.
   
   same goroutinue are deadlock,call stack:
   
   ```
    sync.runtime_SemacquireMutex(0x1288980?, 0x20?, 0x15b15a0?)
        /myapp/go1.23.0/go/src/runtime/sema.go:95 +0x25
    sync.(*Mutex).lockSlow(0xc00084b0ac)
        /myapp/go1.23.0/go/src/sync/mutex.go:173 +0x15d
    sync.(*Mutex).Lock(0x11c4b80?)
        /myapp/go1.23.0/go/src/sync/mutex.go:92 +0x32
    sync.(*Once).doSlow(0xc00084b0a8, 0xc001ae7098)
        /myapp/go1.23.0/go/src/sync/once.go:72 +0x3a
    sync.(*Once).Do(0xc00084b0a8, 0xc001ae7098)
        /myapp/go1.23.0/go/src/sync/once.go:67 +0x33
    github.com/apache/pulsar-client-go/pulsar.(*producer).Close(0xc9870a?)
   ```
   
   #### Steps to reproduce
   
   1. call producer.SendAsync
   2. call the producer.Close in the SendAsync failure callback function
   
   How can we reproduce the issue
   
   #### System configuration
   **Pulsar version**: 0.14
   


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