[Bug] create producer thread stuck
- 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.

### Anything else?
_No response_
### Are you willing to submit a PR?
- [ ] I'm willing to submit a PR!
Contributor 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