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



##########
File path: pulsar/producer_partition.go
##########
@@ -298,7 +306,8 @@ func (p *partitionProducer) reconnectToBroker() {
                d := backoff.Next()
                p.log.Info("Reconnecting to broker in ", d)
                time.Sleep(d)
-
+               atomic.AddUint64(&p.epoch, 1)
+               p.log.WithField("epoch", atomic.LoadUint64(&p.epoch))

Review comment:
       I see, just removed the epoch from the logger and add a one-line debug 
log to print the current epoch value.




-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to