WinChua commented on issue #731:
URL: 
https://github.com/apache/pulsar-client-go/issues/731#issuecomment-1046428644


   Try to present a solution, the problem is that in the resend logic after the 
reconnection of producer, no mater the item in pendingQueue has been sent or 
not, all the items will be resend to broker, which will cause the redundancy of 
msg.
   We can add sent flag in pendingItemQueue initialized as false, which will be 
set to true after the corresponding buffer has been sent successfully.
   And filter the items which has been sent after the reconnection, resend the 
item which has not been sent only.


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