gaoran10 commented on a change in pull request #14870:
URL: https://github.com/apache/pulsar/pull/14870#discussion_r835706764



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java
##########
@@ -1802,6 +1802,10 @@ private void resendMessages(ClientCnx cnx, long 
expectedEpoch) {
                     cnx.channel().close();
                     return;
                 }
+
+                if (isBatchMessagingEnabled()) {
+                    batchMessageAndSend(false);
+                }

Review comment:
       That makes sense,  thanks. I add an enable batch check in the method 
`scheduleBatchFlushTask`, or if the producer didn't enable batch will cause an 
NPE problem when calling method `batchMessageAndSend`.




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


Reply via email to