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

elasticsearch-rest-client host options only work if autowiring is disabled #6163

Closed
jamesnetherton opened this issue Jun 6, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@jamesnetherton
Copy link
Contributor

Bug description

If endpoint options like hostAddressesList, user & password are set, they get ignored because the the Quarkus generated RestClient bean gets autowired. Unless quarkus.elasticsearch config is provided, the client will default to connecting on localhost:9200 with no authentication.

@jamesnetherton jamesnetherton added the bug Something isn't working label Jun 6, 2024
@jamesnetherton jamesnetherton self-assigned this Jun 6, 2024
@jamesnetherton
Copy link
Contributor Author

Unless we want to add native support for this extension, the simplest solution is to remove the quarkus-elasticsearch-rest-client dependency as it's not doing anything useful for us.

Else, it should be enough to only depend on quarkus-elasticsearch-rest-client-common, to avoid pulling in the entirety of Quarkus ES functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant