Negative consumer availablePermits #24298
-
|
Under which circumstances a consumer can end up with a negative I'm on Pulsar 4.0.4 and here is a snippet of the topics stats: "subscriptions": {
"<sub-123>": {
"consumers": [
{
"address": "/10.0.5.78:38698",
"consumerName": "qQ9mm",
"availablePermits": -1727, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Yes, I've seen this before. Some analysis at #23263 . I guess it might be related to batch messages and the mitigation could be to use |
Beta Was this translation helpful? Give feedback.
Yes, I've seen this before. Some analysis at #23263 .
I guess it might be related to batch messages and the mitigation could be to use
preciseDispatcherFlowControl=truein broker.conf to more accurately dispatch messages to consumers according to the available permits. The other option is that there's a bug somewhere when permits handled. If the client sends permits for batches, but the broker expects permits at message level (for each individual message in the batch), that would obviously be a problem.