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

chore(exporters/elasticsearch-exporter): remove high level rest client #4551

Merged
merged 1 commit into from May 19, 2020

Conversation

npepinpe
Copy link
Member

Description

This PR removes Elasticsearch's high level REST client and replaces it with the low level REST client, primarily to remove many heavy dependencies (such as embedding the Elasticsearch server itself) from the project. Out of scope was refactoring the exporter in general, though it could benefit from it. The scope here was strictly replacing the clients, which means most requests are simply maps, with a few DTOs to more easily handle responses.

Related issues

closes #1343

Pull Request Checklist

  • All commit messages match our commit message guidelines
  • The submitting code follows our code style
  • If submitting code, please run mvn clean install -DskipTests locally before committing

@npepinpe npepinpe requested a review from korthout May 18, 2020 16:19
@npepinpe npepinpe self-assigned this May 18, 2020
@npepinpe
Copy link
Member Author

Hey @korthout, I know we didn't talk about this before, but as menski is sick/has no time for this, I'd need someone else to review this :) Let's just quickly chat about it tomorrow before anything!

Copy link
Member

@korthout korthout left a comment

Choose a reason for hiding this comment

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

Great work on getting these dependencies out of our project. Just a couple of remarks here and there.

@npepinpe
Copy link
Member Author

Thanks for the quick review, I applied some of the feedback; I think only the new line one is still open.

@npepinpe npepinpe requested a review from korthout May 19, 2020 13:25
Copy link
Member

@korthout korthout left a comment

Choose a reason for hiding this comment

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

LGTM, but I did comment on some things. In particular the thrown exception is important to have a last look at before merging.

But here's the approval in advance 🎉

@npepinpe npepinpe requested a review from korthout May 19, 2020 15:17
@npepinpe
Copy link
Member Author

Updated to properly handle PutIndexTemplate requests, good catch!

- replaces the high level rest client by the low level rest client
- removes several elastic search dependencies
@npepinpe
Copy link
Member Author

bors r+

zeebe-bors bot added a commit that referenced this pull request May 19, 2020
4551: chore(exporters/elasticsearch-exporter): remove high level rest client r=npepinpe a=npepinpe

## Description

This PR removes Elasticsearch's high level REST client and replaces it with the low level REST client, primarily to remove many heavy dependencies (such as embedding the Elasticsearch server itself) from the project. Out of scope was refactoring the exporter in general, though it could benefit from it. The scope here was strictly replacing the clients, which means most requests are simply maps, with a few DTOs to more easily handle responses.

## Related issues

closes #1343 

#

Co-authored-by: Nicolas Pépin-Perreault <nicolas.pepin-perreault@camunda.com>
@zeebe-bors
Copy link
Contributor

zeebe-bors bot commented May 19, 2020

Build failed

@npepinpe
Copy link
Member Author

bors retry

@zeebe-bors
Copy link
Contributor

zeebe-bors bot commented May 19, 2020

Build succeeded

@zeebe-bors zeebe-bors bot merged commit 010edaa into develop May 19, 2020
@zeebe-bors zeebe-bors bot deleted the 1343-elastic-low branch May 19, 2020 15:39
github-merge-queue bot pushed a commit that referenced this pull request Mar 14, 2024
)

* feature(backend): add batch size throttling

Related with #1590

* feature(backend): add set requestOptions for RecordsReader (for testing)

Related with #1590

* feature(backend): add reset to NumberThrottleable

Related with #1590

* feat(backend): clean up

Related with #1590

* fix(backend): move setRequestOptions to ElasticsearchUtil

Related with #1590

---------

Co-authored-by: Svetlana Dorokhova <svetlana.dorokhova@camunda.com>
github-merge-queue bot pushed a commit that referenced this pull request Apr 16, 2024
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.

Switch to low level elasticsearch rest client
2 participants