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

Support get persistent topics or non-persistent topics for pulsar admin client #9877

Merged

Conversation

codelipenghui
Copy link
Contributor

@codelipenghui codelipenghui commented Mar 11, 2021

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 changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (yes)

The document for the admin API is generated automatically, @jennifer88huang please double confirm.

@codelipenghui codelipenghui self-assigned this Mar 11, 2021
@codelipenghui codelipenghui added type/feature The PR added a new feature or issue requested a new feature area/admin labels Mar 11, 2021
@codelipenghui codelipenghui added this to the 2.8.0 milestone Mar 11, 2021
@codelipenghui codelipenghui added type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages release/2.7.2 and removed type/feature The PR added a new feature or issue requested a new feature labels Mar 11, 2021
@Jennifer88huang-zz
Copy link
Contributor

@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.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work.

@@ -0,0 +1,7 @@
#!/bin/bash

for branch in `git branch`; do
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, my mistake.

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli
Copy link
Contributor

@codelipenghui this is a new REST API, do you really want to pick it to 2.7.2 ?
usually it is better to not add new APIs on patch releases

@codelipenghui
Copy link
Contributor Author

@eolivelli removed 2.7.2

@codelipenghui codelipenghui merged commit 581fd5b into apache:master Apr 25, 2021
@codelipenghui codelipenghui deleted the penghui/admin-get-topics-mode branch April 25, 2021 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants