alpreu opened a new issue, #21042:
URL: https://github.com/apache/pulsar/issues/21042

   ### Search before asking
   
   - [X] I searched in the [issues](https://github.com/apache/pulsar/issues) 
and found nothing similar.
   
   
   ### Version
   
   Pulsar 3.1.0
   
   ### Minimal reproduce step
   
   1. Create a persistent and a non-persistent topic
   ```
   ./bin/pulsar-admin topics create-partitioned-topic 
persistent://public/default/persistent-topic -p 3
   ./bin/pulsar-admin topics create-partitioned-topic 
non-persistent://public/default/non-persistent-topic -p 3
   ```
   2. List partitioned topics (works as expected)
   ```
   ./bin/pulsar-admin topics list-partitioned-topics public/default
   non-persistent://public/default/non-persistent-topic
   persistent://public/default/persistent-topic
   
   ### What did you expect to see?
   
   3. List topics (docs state it should include both topic domains)
   ```
   ./bin/pulsar-admin topics list public/default
   persistent://public/default/persistent-topic-partition-2
   persistent://public/default/persistent-topic-partition-0
   persistent://public/default/persistent-topic-partition-1
   non-persistent://public/default/non-persistent-topic-partition-2
   non-persistent://public/default/non-persistent-topic-partition-0
   non-persistent://public/default/non-persistent-topic-partition-1
   ```
   
   4. List topics with topic domain flag set to non-persistent
   ```
   ./bin/pulsar-admin topics list public/default -td non_persistent
   non-persistent://public/default/non-persistent-topic-partition-2
   non-persistent://public/default/non-persistent-topic-partition-0
   non-persistent://public/default/non-persistent-topic-partition-1
   ```
   
   ### What did you see instead?
   
   3. List topics (bug: only shows the persistent topics)
   ```
   ./bin/pulsar-admin topics list public/default
   persistent://public/default/persistent-topic-partition-2
   persistent://public/default/persistent-topic-partition-0
   persistent://public/default/persistent-topic-partition-1
   ```
   4. List topics with topic domain set to non-persistent (bug: does not find 
the non-persistent topics)
   ```
   ./bin/pulsar-admin topics list public/default -td non_persistent
   (nothing)
   
   ### Anything else?
   
   Retrieving the topic metadata for the non-persistent topic works:
   ```
   ./bin/pulsar-admin topics get-partitioned-topic-metadata 
non-persistent://public/default/on-persistent-topic
   {
     "partitions" : 3,
     "deleted" : false
   }
   ```
   
   ### Are you willing to submit a PR?
   
   - [ ] 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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to