Lookup command can return the address of non-existent topic
- 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.
### Motivation
In my case, I would like to get the broker corresponding to the topic. When I use `pulsar-admin topics lookup` with a non-existent topic, I expect to throw the topic not found, but return a broker address.
# Reproduce this issue
1. Run broker
```
docker run -it apachepulsar/pulsar:3.1.2 bin/pulsar standalone
```
2. Run lookup
```
bin/pulsar-admin topics lookup public/default/my-topic
pulsar://localhost:6650
```
### Solution
_No response_
### Alternatives
_No response_
### Anything else?
_No response_
### Are you willing to submit a PR?
- [X] I'm willing to submit a PR!
Contributor guide
Assessment
This issue has not been assessed yet.