[Bug] Pulsar Client failed to subscribe to Topic when multithreading is concurrent
- 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)

### 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
Assessment
This issue has not been assessed yet.