nodece commented on code in PR #25536:
URL: https://github.com/apache/pulsar/pull/25536#discussion_r3091447046
##########
pulsar-broker/src/test/java/org/apache/pulsar/client/api/SimpleProducerConsumerTest.java:
##########
@@ -5021,11 +5034,11 @@ public void onSendAcknowledgement(Producer producer,
Message message, MessageId
// Create message payload, refCnf = 1 now.
ByteBuf payload = PulsarByteBufAllocator.DEFAULT.heapBuffer(1);
payloads[i] = payload;
- log.info("payload_{}.refCnf 1st: {}", i, payload.refCnt());
+ log.info().attr("payload", i).attr("st",
payload.refCnt()).log("payload_ .refCnf 1st");
payload.writeByte(i);
// refCnf = 2 now.
payload.retain();
- log.info("payload_{}.refCnf 2nd: {}", i, payload.refCnt());
+ log.info().attr("payload", i).attr("nd",
payload.refCnt()).log("payload_ .refCnf 2nd");
Review Comment:
```suggestion
log.info().attr("payload", i).attr("refCnt",
payload.refCnt()).log("Payload refCnt (2nd)");
```
--
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]