freeznet commented on a change in pull request #701:
URL: https://github.com/apache/pulsar-client-go/pull/701#discussion_r781815276



##########
File path: pulsar/producer_partition.go
##########
@@ -800,7 +801,7 @@ func (p *partitionProducer) ReceivedSendReceipt(response 
*pb.CommandSendReceipt)
                // the state discrepancy.
                p.log.Warnf("Received ack for %v on sequenceId %v - expected: 
%v, closing connection", response.GetMessageId(),
                        response.GetSequenceId(), pi.sequenceID)
-               p.cnx.Close()
+               p._getConn().Close()

Review comment:
       maybe clean up the cached connection when the cnx is closed? otherwise 
`_getConn()` will return a closed connection.




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