# TransportClient: Timeout waiting for task

**URL:** <https://discuss.elastic.co/t/transportclient-timeout-waiting-for-task/58315>\
**Category:** Elasticsearch\
**Created:** [August 18, 2016, 6:03am UTC](https://discuss.elastic.co/t/transportclient-timeout-waiting-for-task/58315 "2016-08-18T06:03:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![whzcl](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@whzcl](https://discuss.elastic.co/u/whzcl)\
**Post date:** [August 18, 2016, 6:03am UTC](https://discuss.elastic.co/t/transportclient-timeout-waiting-for-task/58315/1 "2016-08-18T06:03:12Z")

</div>

ElasticSearch version: 1.5.2

Hi all,  
I am using the java transport client to index documents. Recently I sometimes met this exception:  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/d/dc71cfe10e44789b51e7cfdefaef489912212f56.png)  
However, it seems that my Elasticsearch node is still in healthy state. Noting error logs in the Elasticsearch nodes can be found.  
What' worse, if I retry index the documets, the error will happen again.

Here are part of the smaple codes that I am using to index documents.

`
BulkRequestBuilder bulkRequest = client.prepareBulk();
bulkRequest.add(client.prepareIndex(indexName, indexType, docId)
                .setSource(dataMaps));
BulkResponse bulkResponse = bulkRequest.execute().actionGet(15000);

My question:
What's the reason for the exception?
Is there any proposal for problem?
Thank you`

---

<div class="post-metadata">

**Author:** ![whzcl](https://avatars.discourse-cdn.com/v4/letter/w/eb8c5e/32.png) [@whzcl](https://discuss.elastic.co/u/whzcl)\
**Post date:** [August 29, 2016, 2:04pm UTC](https://discuss.elastic.co/t/transportclient-timeout-waiting-for-task/58315/2 "2016-08-29T14:04:21Z")

</div>

Today I also met this problems.

---

<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:** [July 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/transportclient-timeout-waiting-for-task/58315/3 "2017-07-05T22:24:25Z")

</div>


