-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Support get persistent topics or non-persistent topics for pulsar admin client #9877
Support get persistent topics or non-persistent topics for pulsar admin client #9877
Conversation
pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/Topics.java
Outdated
Show resolved
Hide resolved
pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/GetTopicsMode.java
Outdated
Show resolved
Hide resolved
@codelipenghui yes, it will be generated automatically from the code file. We can double check whether it's displayed on the admin website after merging the PR and triggering the website. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work.
branch_delete_except.sh
Outdated
@@ -0,0 +1,7 @@ | |||
#!/bin/bash | |||
|
|||
for branch in `git branch`; do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this file is not related to this patch, please remove
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, my mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@codelipenghui this is a new REST API, do you really want to pick it to 2.7.2 ? |
@eolivelli removed 2.7.2 |
Motivation
Currently, we can only get all topics by the admin client. This pr supports to get persistent topic or non-persistent topic by add
--topic-domain=persistent
or--topic-domain=non-persistent
.For Pulsar SQL, is should only get fetch the persistent topics when list tables. I will push the next PR to fix the pulsar SQL.
Verifying this change
Unit test and integration test added.
Does this pull request potentially affect one of the following parts:
If
yes
was chosen, please highlight the changesDocumentation
The document for the admin API is generated automatically, @jennifer88huang please double confirm.