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

[#504] add http lookup service support #510

Merged

Conversation

freeznet
Copy link
Contributor

@freeznet freeznet commented Apr 13, 2021

Fixes #504

Master Issue: #504

Motivation

java-client has support http-based lookup: https://github.com/apache/pulsar/blob/12ef7c9b7ce698e6a8181700a2e8a2b030bcfa60/pulsar-client/src/main/java/org/apache/pulsar/client/impl/PulsarClientImpl.java#L150

This pr adds http lookup service into pulsar-client-go, to allow user use http/https protocol as service url.

Modifications

  • add HTTPLookupService
  • add HTTPClient
  • add tests
  • apply go 1.15 with enable Common Name matching with x509 cert in integration-tests certs
  • add auth support

Verifying this change

  • Make sure that the change passes the CI checks.

Documentation

  • Does this pull request introduce a new feature? (yes)
  • If yes, how is the feature documented? (not documented)
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

go 1.15 enable Common Name matching

revert auth changes

add retry to httpclient, add tests
@freeznet freeznet force-pushed the freeznet/issue-504-add-http-lookup-service branch from 595ccf6 to d4ad4e0 Compare April 13, 2021 10:13
@freeznet freeznet changed the title [WIP][#504] add http lookup service support [#504] add http lookup service support Apr 14, 2021
@freeznet
Copy link
Contributor Author

@merlimat @wolfstudy @jiazhai @codelipenghui Please help to review this PR, thanks.

@wolfstudy wolfstudy merged commit ec40d79 into apache:master Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support http based broker endpoint
3 participants