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 PulsarClientImpl.getNumberOfPartitions() to avoid exposing PartitionedTopicMetadata #842

Merged
merged 1 commit into from Oct 20, 2017

Conversation

merlimat
Copy link
Contributor

Motivation

The PartitionedTopicMetadata will be shaded if the pulsar-client library itself it's shaded, so we cannot really use it (for example in Kafka wrapper we need to know the number of partitions).

By returning just the partitions number, we avoid the shading problem.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Oct 19, 2017
@merlimat merlimat added this to the 1.21.0-incubating milestone Oct 19, 2017
@merlimat merlimat self-assigned this Oct 19, 2017
Copy link
Contributor

@rdhabalia rdhabalia left a comment

Choose a reason for hiding this comment

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

👍

@merlimat merlimat merged commit 4288839 into apache:master Oct 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

3 participants