baomingyu opened a new issue #650:
URL: https://github.com/apache/pulsar-client-go/issues/650
Producer handle ReceivedSendReceipt will close cnx when response sequenceID
is not equal pendingQueue msg sequenceID
code is this:
```
if pi.sequenceID != response.GetSequenceId() {
// if we receive a receipt that is not the one expected, the
state of the broker and the producer differs.
// At that point, it is better to close the connection to the
broker to reconnect to a broker hopping it solves
// 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()
return
}
```
This processing method is more violent, and it will cause a large number of
reconnections in the scene of response timeout.
In addition, this processing method is different from java client
--
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]