@@ -1274,14 +1274,18 @@ func (p *partitionProducer) ReceivedSendReceipt(response *pb.CommandSendReceipt)
12741274
12751275 if pi .sequenceID < response .GetSequenceId () {
12761276 // Force connection closing so that messages can be re-transmitted in a new connection
1277- p .log .Warnf ("Received ack for ledgerId:%d entryId:%d on sequenceId %v - expected: %v, local < remote, closing connection" ,
1278- int64 (* response .GetMessageId ().LedgerId ), int64 (* response .GetMessageId ().EntryId ), response .GetSequenceId (), pi .sequenceID )
1277+ p .log .Warnf ("Received ack for ledgerId:%d entryId:%d on sequenceId %v - expected: %v, local < remote, " +
1278+ "closing connection" ,
1279+ int64 (* response .GetMessageId ().LedgerId ), int64 (* response .GetMessageId ().EntryId ), response .GetSequenceId (),
1280+ pi .sequenceID )
12791281 p ._getConn ().Close ()
12801282 return
12811283 } else if pi .sequenceID > response .GetSequenceId () {
12821284 // Ignoring the ack since it's referring to a message that has already timed out.
1283- p .log .Warnf ("Received ack for ledgerId:%d entryId:%d on sequenceId %v - expected: %v, local > remote, ignore it" ,
1284- int64 (* response .GetMessageId ().LedgerId ), int64 (* response .GetMessageId ().EntryId ), response .GetSequenceId (), pi .sequenceID )
1285+ p .log .Warnf ("Received ack for ledgerId:%d entryId:%d on sequenceId %v - expected: %v, local > remote, " +
1286+ "ignore it" ,
1287+ int64 (* response .GetMessageId ().LedgerId ), int64 (* response .GetMessageId ().EntryId ), response .GetSequenceId (),
1288+ pi .sequenceID )
12851289 return
12861290 } else {
12871291 // The ack was indeed for the expected item in the queue, we can remove it and trigger the callback
0 commit comments