pulsar-client-go
pulsar-client-go copied to clipboard
[bugfix] fix stuck when ProducerBlockedQuotaExceededException
Expected behavior
fail fast when user call Send
Actual behavior
stuck in Send method

Steps to reproduce
1:set a 10MB backlog in pulsar topic 2:Infinite loop call partitionProducer.Send to produce msg to that topic 3:see the sdk output : [Failed to create producer at send PRODUCER request]" error="server error: ProducerBlockedQuotaExceededException: Cannot create producer on topic with backlog quota exceeded" producerID=1
System configuration
Pulsar version: x.y
@billowqiu The default action is to block the Send()
when the quota is full.
You can change the behavior in the namespace (or topic) policies: https://pulsar.apache.org/docs/en/admin-api-namespaces/#configure-backlog-quota-policies
@billowqiu The default action is to block the
Send()
when the quota is full.You can change the behavior in the namespace (or topic) policies: https://pulsar.apache.org/docs/en/admin-api-namespaces/#configure-backlog-quota-policies
we need producer_exception to detect the qouta is full;Other policies are not appropriate for our scenario.