poorbarcode commented on code in PR #23802:
URL: https://github.com/apache/pulsar/pull/23802#discussion_r1901441355
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentStickyKeyDispatcherMultipleConsumersClassic.java:
##########
@@ -173,8 +191,11 @@ private void sortRecentlyJoinedConsumersIfNeeded() {
posPre = posAfter;
}
}
-
if (sortNeeded) {
+ log.error("[{}] [{}] The items in recentlyJoinedConsumers are
out-of-order. {}",
+ topic.getName(), name,
recentlyJoinedConsumers.entrySet().stream().map(entry ->
+ String.format("%s-%s:%s",
entry.getKey().consumerName(), entry.getValue().getLedgerId(),
+
entry.getValue().getEntryId())).collect(Collectors.toList()));
Review Comment:
> After this PR, this is unexpected behavior.
+1
--
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]