3pacccccc commented on code in PR #24610:
URL: https://github.com/apache/pulsar/pull/24610#discussion_r2257724376
##########
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java:
##########
@@ -1394,6 +1394,11 @@ private void processPayloadByProcessor(final
BrokerEntryMetadata brokerEntryMeta
final MessagePayloadContextImpl entryContext =
MessagePayloadContextImpl.get(
brokerEntryMetadata, messageMetadata, messageId, this,
redeliveryCount, ackSet, consumerEpoch);
final AtomicInteger skippedMessages = new AtomicInteger(0);
+ if (this instanceof ZeroQueueConsumerImpl<T> &&
entryContext.isBatch()) {
+ this.receiveIndividualMessagesFromBatch(brokerEntryMetadata,
+ messageMetadata, redeliveryCount, ackSet, byteBuf, null, null,
consumerEpoch, false);
+ return;
+ }
Review Comment:
Thank you so much, this is a nich suggestion. I'll update soon
--
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]