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

Add underReplicate state in the topic internal stats #10013

Merged
merged 5 commits into from
Apr 21, 2021

Conversation

codelipenghui
Copy link
Contributor

Motivation

Add underReplicate state in the topic internal stats

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)

BookKeeperAdmin bookKeeperAdmin = brokerService.pulsar().getBookKeeperAdmin();
Collection<BookieId> allBookies;
try {
allBookies = bookKeeperAdmin.getAllBookies();
Copy link
Contributor

Choose a reason for hiding this comment

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

This is mixing a blocking call into an async method. Instead we could be using the MetadataCache to have the list of bookies available.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point!

@merlimat merlimat merged commit bfba8c8 into apache:master Apr 21, 2021
@codelipenghui codelipenghui deleted the penghui/topic_underreplicate branch April 21, 2021 17:05
@sijie sijie mentioned this pull request Apr 27, 2021
4 tasks
codelipenghui added a commit that referenced this pull request Apr 29, 2021
* Add underReplicate state in the topic internal stats

* Apply comments.

(cherry picked from commit bfba8c8)
@codelipenghui codelipenghui added the cherry-picked/branch-2.7 Archived: 2.7 is end of life label Apr 29, 2021
pkumar-singh pushed a commit to pkumar-singh/pulsar that referenced this pull request Aug 10, 2021
pkumar-singh pushed a commit to pkumar-singh/pulsar that referenced this pull request Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants