How do i close async high level rest client

Hi,

I am using Async high level rest client. I am pushing 400 requests to elastic search using async client. It is performant and gives me good parallelization. However I am not able to figure out how to close the client? If I do client.close(), the asycn requests that are still in pipeline fail. Can someone guide me if its important to close the async client or any method to close it once all my async requests are over

Hey,

judging from a super quick peek at the source, the apache http client connection manager is closed with a 2 second delay, and does not wait for anything after that. Unless there is no other reply coming in here from a developer, opening a github issue about this might make sense.

Thanks!

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.