merlimat commented on a change in pull request #10824:
URL: https://github.com/apache/pulsar/pull/10824#discussion_r645298702
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractBaseDispatcher.java
##########
@@ -114,9 +114,11 @@ public void
filterEntriesForConsumer(Optional<EntryWrapper[]> entryWrapper, List
continue;
}
ByteBuf metadataAndPayload = entry.getDataBuffer();
- MessageMetadata msgMetadata = entryWrapper.isPresent() &&
entryWrapper.get()[i] != null
- ? entryWrapper.get()[i].getMetadata()
+ int entryWrapperIndex = i + entryWrapperOffset;
+ MessageMetadata msgMetadata = entryWrapper.isPresent() &&
entryWrapper.get()[entryWrapperIndex] != null
+ ? entryWrapper.get()[entryWrapperIndex].getMetadata()
: null;
+ System.out.println(msgMetadata.getNumMessagesInBatch());
Review comment:
```suggestion
```
--
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.
For queries about this service, please contact Infrastructure at:
[email protected]