StandaloneBroker auto configures an Elasticsearch client #4403
Labels
kind/bug
Categorizes an issue or PR as a bug
scope/broker
Marks an issue or PR to appear in the broker section of the changelog
severity/low
Marks a bug as having little to no noticeable impact for the user
Describe the bug
It seems Spring's auto configuration creates a high level REST Elasticsearch client, even when the exporter is not configured, resulting in a few threads being started for no reason and which are never closed. I don't think this is a huge problem, but definitely something to remove.
To Reproduce
You will see threads relating to a
CloseableHttpAsyncClient
, which is the client Elastic uses under the hood. To further confirm, you can add a breakpoint in Elasticsearch code where a client is created, and it will be triggered on start up.Expected behavior
No client is created
Environment:
The text was updated successfully, but these errors were encountered: