apache / pulsar-client-go

Apache Pulsar Go Client Library
https://pulsar.apache.org/
Apache License 2.0
652 stars 335 forks source link

[BUG] flow controller #784

Open zwb1234567 opened 2 years ago

zwb1234567 commented 2 years ago

Expected behavior

if send flow failed the availablePermits should not be set to 0 Tell us what should happen if send flow failed availablePermits should continue to add, then the next time we continue send flow , but now, we set availablePermits to 0, the next time we will not send flow, because conditions not satisfied, it maybe never send flow, then the 'select' will have no satisfied 'case', the process stuck.

Actual behavior

image

Tell us what happens instead

Steps to reproduce

How can we reproduce the issue I think we should set availablePermits to 0 ,when send flow success.

System configuration

Pulsar version: 2.9.0

liangyuanpeng commented 2 years ago

Add some reproduce step will be great.