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

feat(ksql-connect): introduce ConnectClient for REST requests #3137

Merged
merged 2 commits into from
Jul 29, 2019

Conversation

agavra
Copy link
Contributor

@agavra agavra commented Jul 26, 2019

Description

This PR introduces a client that can issue requests to connect and wires it through the ServiceContext as well as make the necessary pom.xml changes. This is part 1 of a few PRs for connect integration and an effort to keep them small.

Testing done

Unit testing for the new components, but there isn't actually any new functionality that is introduced with this change.

Reviewer checklist

  • Ensure docs are updated if necessary. (eg. if a user visible feature is being added or changed).
  • Ensure relevant issues are linked (description should include text like "Fixes #")

@agavra agavra requested a review from a team as a code owner July 26, 2019 17:09
Copy link
Contributor

@rodesai rodesai left a comment

Choose a reason for hiding this comment

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

Overall LGTM. One small point inline.


return connectResponse;
} catch (final Exception e) {
throw new KsqlException(e);
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe define a new exception type for connect client errors that inherits from RuntimeException.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I will reuse KsqlServerException here - if later we need a strong type for connect errors we can do that minor refactor. Don't want to unnecessarily add boilerplate.

@agavra agavra requested review from rodesai and a team July 29, 2019 19:50
Copy link
Contributor

@rodesai rodesai left a comment

Choose a reason for hiding this comment

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

LGTM

@agavra agavra merged commit 15548ce into confluentinc:master Jul 29, 2019
@agavra agavra deleted the connect_client branch July 29, 2019 21:00
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.

2 participants