lhotari commented on issue #25005: URL: https://github.com/apache/pulsar/issues/25005#issuecomment-3564150632
The `newConsumer.resume()` calls won't impact the behavior in all cases. This logic makes it not effective: https://github.com/apache/pulsar/blob/807dcaf5d928f8202c1bf8b8402cfcf72a41e63d/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java#L951-L955 The permits will be sent here: https://github.com/apache/pulsar/blob/807dcaf5d928f8202c1bf8b8402cfcf72a41e63d/pulsar-client/src/main/java/org/apache/pulsar/client/impl/MultiTopicsConsumerImpl.java#L236-L249 However, there's another potential race condition here here. If the connection breaks when the call is made and reconnects immediately, it's possible that the consumer is left in a state where it won't have permits. I think I've seen a few cases like that over the years. -- 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]
