apache / apache/pulsar-client-go
[bugfix] fix stuck when ProducerBlockedQuotaExceededException
- Dominant language
- Go
- Stars
- 745
- Forks
- 389
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 3
Description
#### 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
Contributor guide
Research direction
Start with the partitionProducer.Send call and reproduce the 10 MB backlog-quota scenario using an infinite send loop. Trace how ProducerBlockedQuotaExceededException is reported during producer creation, and consider the issue done when Send fails fast instead of remaining stuck while the server rejects the producer.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- distributed-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100