Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GET admin/v2/namespaces/public/default/topics?mode=ALL returns persistent topics only. #16081

Closed
visortelle opened this issue Jun 15, 2022 · 1 comment
Assignees
Labels
type/bug The PR fixed a bug or issue reported a bug

Comments

@visortelle
Copy link
Member

visortelle commented Jun 15, 2022

To Reproduce

You can start Pulsar in docker with:

docker run -it -p 8080:8080 apachepulsar/pulsar:2.10.0 bin/pulsar standalone

Run:

#!/usr/bin/env bash

echo "Create topics"

pulsar-admin topics create persistent://public/default/p1
pulsar-admin topics create persistent://public/default/p2
pulsar-admin topics create persistent://public/default/p3

pulsar-admin topics create non-persistent://public/default/np1
pulsar-admin topics create non-persistent://public/default/np2
pulsar-admin topics create non-persistent://public/default/np3

echo ""
echo "Get all topics"
curl http://localhost:8080/admin/v2/namespaces/public/default/topics?mode=ALL

echo ""
echo "Get non-persistent topics"
curl http://localhost:8080/admin/v2/namespaces/public/default/topics?mode=ALL
curl http://localhost:8080/admin/v2/namespaces/public/default/topics?mode=NON_PERSISTENT

For both curl calls, non-persistent topics are missing:

Screen Shot 2022-06-15 at 5 35 39 PM

If you use pulsar-admin, you'll get the right result by running pulsar-admin topics list public/default. This command uses other API endpoints.

Screen Shot 2022-06-15 at 5 37 31 PM

@Technoboy-
Copy link
Contributor

Fixed by #16170 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

No branches or pull requests

2 participants