apache / apache/pulsar-client-go

[bugfix] fix stuck when ProducerBlockedQuotaExceededException

Open
#768 2 comments 0 reactions 0 assignees View on GitHub
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
image

image

#### 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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.