You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Zero queue consumer has been supported since v0.13.0, but there seem to be some buggy behaviors.
Immediately after creating a consumer, I got the following error log:
ERRO[0000] unable to send initial permits to broker consumerID=1 error="invalid number of permits requested: 0" name=dufbb subscription=sub1 topic="persistent://pulsar/test/t1"
If I registered MessageChannel when creating a consumer, its availablePermits was 0. Naturally, even if messages were published to the topic, it was not able to receive any of them.
Consumer that receive messages using Receive() rather than MessageChannel worked. However, if the connected topic was unloaded or the broker was restarted, availablePermits became 0 and no messages could be received thereafter.
Expected behavior
omitted
Actual behavior
Zero queue consumer has been supported since v0.13.0, but there seem to be some buggy behaviors.
MessageChannel
when creating a consumer, itsavailablePermits
was 0. Naturally, even if messages were published to the topic, it was not able to receive any of them.Receive()
rather thanMessageChannel
worked. However, if the connected topic was unloaded or the broker was restarted,availablePermits
became 0 and no messages could be received thereafter.Steps to reproduce
I ran the following code:
consumer_with_message_channel.go
consumer_without_message_channel.go
System configuration
Pulsar version: v0.14.0
The text was updated successfully, but these errors were encountered: