apache / apache/pulsar

[Bug] create producer thread stuck

Open
#21,900 10 comments 0 reactions 0 assignees View on GitHub
type/bug
Dominant language
Java
Stars
15.3k
Forks
3.8k
Avg merge
1d 14h
Merged PRs (30d)
160

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar/issues) and found nothing similar.

### Version

pulsar client 3.01.
pulsar broker 3.0.1
puslar proxy 3.0.1

### Minimal reproduce step

It is hard to reproduce

### What did you expect to see?

When you use puslar client to create producer objects synchronously, you can trigger a timeout or other exception normally, rather than the thread staying stuck

### What did you see instead?

Threads keep getting stuck when creating producer objects synchronously using puslar client. To reproduce it, the pulsar cluster is stopped, and a timeout exception is reported when the produce object is created. Therefore, it is not clear how this situation has arisen. At present, it has appeared many times in the production environment.
![企业微信截图_17047919918562](https://github.com/apache/pulsar/assets/19525691/6877f5de-8d3a-4a0e-91f7-1e67053cef08)

### Anything else?

_No response_

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Start by investigating synchronous producer creation in the Pulsar client when the cluster is stopped, focusing on the reported timeout and the thread that remains stuck. Use the production behavior and attached screenshot as context; done means producer creation returns a timeout or other exception without leaving the thread blocked.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.