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

Simplify ServiceUrlProvider related APIs #2671

Merged
merged 1 commit into from
Sep 28, 2018

Conversation

merlimat
Copy link
Contributor

Motivation

I have seen few issues with ee5afa5:

  1. There are 3 new methods in the PulsarClient interface which are meant to be used together. We should reduce
    the public API to the minimum possible. So I propose to just have a Pulsar.updateServiceUrl() which internally
    will perform all the needed operations in order to reconnect the client to new endpoint.

  2. We shouldn't be exposing ClientConfigurationData in the API since it belongs to impl package

  3. There is a leak of resources when the LookupService gets replaced with the new one since the existing
    is not closed.

Modifications

Refactored to simplify API for adding ServiceUrlProvider

cc/ @codelipenghui

It would be good to get this into 2.2 since it's changing the API for this new feature.

@merlimat merlimat added the type/enhancement The enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages label Sep 28, 2018
@merlimat merlimat self-assigned this Sep 28, 2018
@codelipenghui
Copy link
Contributor

codelipenghui commented Sep 28, 2018 via email

@jiazhai
Copy link
Member

jiazhai commented Sep 28, 2018

rerun java8 tests

@merlimat
Copy link
Contributor Author

run java8 tests

@merlimat merlimat merged commit 464e7d1 into apache:master Sep 28, 2018
@merlimat merlimat deleted the improve-service-url-provider-api branch September 28, 2018 19:19
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

4 participants