apache / apache/pulsar

[Bug] Pulsar Client failed to subscribe to Topic when multithreading is concurrent

Open
#21,617 3 comments 0 reactions 1 assignee Claimed by @Technoboy- View on GitHub
category/reliability 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 version 2.8.1 and 3.1.0

### Minimal reproduce step

In the URL connection string, if the IP3 host goes down and the network ping is not working, creating a consumer startup program with 20 threads on the same Pulsar client can reproduce it.
[test code and log.zip](https://github.com/apache/pulsar/files/13454381/test.code.and.log.zip)
![image](https://github.com/apache/pulsar/assets/54351417/b068c0a5-c915-44cd-89fd-7f69f0cefc36)

### What did you expect to see?

Consumers can subscribe and consume normally.

### What did you see instead?

Consumers can‘t subscribe and consume normally.

### Anything else?

_No response_

### Are you willing to submit a PR?

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.