# Intermittent connection closure when performing GET operations

**URL:** <https://discuss.elastic.co/t/intermittent-connection-closure-when-performing-get-operations/142978>\
**Category:** Elasticsearch\
**Created:** [August 3, 2018, 9:38pm UTC](https://discuss.elastic.co/t/intermittent-connection-closure-when-performing-get-operations/142978 "2018-08-03T21:38:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ashish\_Goel1](https://avatars.discourse-cdn.com/v4/letter/a/8797f3/32.png) [@Ashish\_Goel1](https://discuss.elastic.co/u/Ashish_Goel1)\
**Post date:** [August 3, 2018, 9:38pm UTC](https://discuss.elastic.co/t/intermittent-connection-closure-when-performing-get-operations/142978/1 "2018-08-03T21:38:19Z")

</div>

Hi there,

We are experiencing some intermittent issues when performing GET operations with our cluster 6.2.3 and client is 6.2.x (JAVA). Every now and then we get a `ConnectionClosedException`. Below is the stack trace for the same:

> 2018-08-03 13:02:14 715e6f08-971d-11e8-b75c-01060c4cd7ce ERROR ElasticSearchAccountsDB:40 - An exception was thrown by Elasticsearch for query: get [accounts][\_doc][1234567891011]: routing [1234567891011]  
> org.apache.http.ConnectionClosedException: Connection closed unexpectedly  
> at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.closed(HttpAsyncRequestExecutor.java:140) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at org.apache.http.impl.nio.client.InternalIODispatch.onClosed(InternalIODispatch.java:71) ~[httpasyncclient-4.1.x.jar:?]  
> at org.apache.http.impl.nio.client.InternalIODispatch.onClosed(InternalIODispatch.java:39) ~[httpasyncclient-4.1.x.jar:?]  
> at org.apache.http.impl.nio.reactor.AbstractIODispatch.disconnected(AbstractIODispatch.java:100) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionClosed(BaseIOReactor.java:279) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.processClosedSessions(AbstractIOReactor.java:440) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:283) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588) ~[Apache-HttpComponents-HttpCore-4.4.x.jar:?]  
> at java.lang.Thread.run(Thread.java:748) ~[?:1.8.0\_141]

Apart from this intermittent issue, the client is properly processing thousands of requests and there are no changes in the configuration of the client or its code or the infrastructure.

Thanks,  
Ashish

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 31, 2018, 9:38pm UTC](https://discuss.elastic.co/t/intermittent-connection-closure-when-performing-get-operations/142978/2 "2018-08-31T21:38:20Z")

</div>

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