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



##########
File path: pulsar/producer_partition.go
##########
@@ -298,7 +305,9 @@ 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)).Debug(

Review comment:
       This will log the epoch twice once as a field and once as a message. It 
might make more sense to add the epoch log after the producer is created? 
Curious what's the significance using and knowing the epoch?




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