You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "nodece (via GitHub)" <gi...@apache.org> on 2024/01/05 05:48:45 UTC
[I] Lookup command can return the address of non-existent topic [pulsar]
nodece opened a new issue, #21858:
URL: https://github.com/apache/pulsar/issues/21858
### 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!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Lookup command can return the address of non-existent topic [pulsar]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat commented on issue #21858:
URL: https://github.com/apache/pulsar/issues/21858#issuecomment-6388777737
Thanks @nodece. This is the intended behavior. Lookup returns "Topic not found" for a missing persistent topic unless auto topic creation would create it (see `TopicLookupBase`). Standalone has `allowAutoTopicCreation=true` by default, so returning the broker that would own the topic is correct. With auto-creation disabled, the lookup in your repro returns 404. Closing as not planned. Please reopen if you see a broker address returned while auto-creation is disabled.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Lookup command can return the address of non-existent topic [pulsar]
Posted by "merlimat (via GitHub)" <gi...@apache.org>.
merlimat closed issue #21858: Lookup command can return the address of non-existent topic
URL: https://github.com/apache/pulsar/issues/21858
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org