You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "lhotari (via GitHub)" <gi...@apache.org> on 2026/01/02 11:08:13 UTC
Re: [PR] [fix][broker]Fixed an issue where sending chunk messages would be lost when no consumers were online [pulsar]
lhotari commented on code in PR #25077:
URL: https://github.com/apache/pulsar/pull/25077#discussion_r2657481620
##########
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SharedConsumerAssignor.java:
##########
@@ -58,7 +62,11 @@ public Map<Consumer, List<EntryAndMetadata>> assign(final List<EntryAndMetadata>
Consumer consumer = getConsumer(numConsumers);
if (consumer == null) {
- entryAndMetadataList.forEach(EntryAndMetadata::release);
+ if (subscription != null) {
+ log.info("No consumer found to assign in topic:{}, subscription:{}, redelivering {} messages.",
+ subscription.getTopic().getName(), subscription.getName(), entryAndMetadataList.size());
+ }
Review Comment:
this logging could be very noisy. I think it's better to use debug level logging instead since it's a normal condition that there might not be any consumers available with permits.
--
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: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org