eolivelli commented on code in PR #17751:
URL: https://github.com/apache/pulsar/pull/17751#discussion_r979402367
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/AbstractBaseDispatcher.java:
##########
@@ -91,6 +95,25 @@ public int filterEntriesForConsumer(List<? extends Entry>
entries, EntryBatchSiz
isReplayRead, consumer);
}
+ /**
+ * 1. Acknowledge skipped messages;
+ * 2. Filter out skipped messages;
+ */
+ public List<Entry> filterAndAcknowledgeSkippedEntry(List<Entry> entries) {
+ List<Position> skippedPositions = new ArrayList<>();
+ List<Entry> filterEntries =
Lists.newArrayList(Collections2.filter(entries, entry -> {
Review Comment:
I wonder if we can move this into filterEntriesForConsumer? This way we save
some allocations
--
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]