poorbarcode commented on code in PR #24061:
URL: https://github.com/apache/pulsar/pull/24061#discussion_r1984397528


##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java:
##########
@@ -2353,7 +2353,9 @@ private void batchMessageAndSend(boolean 
shouldScheduleNextBatchFlush) {
                     processOpSendMsg(opSendMsg);
                 }
             } catch (Throwable t) {
-                log.warn("[{}] [{}] error while create opSendMsg by batch 
message container", topic, producerName, t);
+                batchMessageContainer.resetPayloadAfterFailedPublishing();
+                log.warn("[{}] [{}] error while create opSendMsg by batch 
message container, and reset payloads",

Review Comment:
   Thanks for you suggestion, I changed it



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