# Rest High Level Client - TimeoutException

**URL:** <https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668>\
**Category:** Elasticsearch\
**Created:** [March 13, 2018, 2:22am UTC](https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668 "2018-03-13T02:22:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavel\_Sapozhnikov](https://avatars.discourse-cdn.com/v4/letter/p/f475e1/32.png) [@Pavel\_Sapozhnikov](https://discuss.elastic.co/u/Pavel_Sapozhnikov)\
**Post date:** [March 13, 2018, 2:22am UTC](https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668/1 "2018-03-13T02:22:42Z")

</div>

Hello Folks

When I use `client.updateAsync` I am getting the `java.util.concurrent.TimeoutException` within `onFailure` method. I see the messages comes through to Kibana, so it almost feels like annoying exception but I definitely don't understand it fully.

Some details now:

ElasticSearch 6.2.2 running in a docker mode and process is using Rest High Level client version 6.2.2

The process is Apache Storm in LocalCluster mode. A bolt is executing updateAsync.

So questions:

1. What exactly is timing out? Is it posting to ES thats timing out or a Storm thread? Let me remind that this exception is coming withing onFailure method.

2. Is there a way to increase this timeout?

3. The exception is not clear, when I do `e.getMessage()` it comes back as null but I get a stack trace (which I will post if there's a request).

4. Should I perhaps not even be using Rest High Level client within Storm process?

Any help will be appreciated.

Best regards,  
Pavel

---

<div class="post-metadata">

**Author:** ![javanna](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/javanna/32/4698_2.png) [@javanna](https://discuss.elastic.co/u/javanna)\
**Post date:** [March 16, 2018, 9:22am UTC](https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668/2 "2018-03-16T09:22:52Z")

</div>

Hi,  
not sure what you mean with "I see the messages comes through to Kibana".

When you use an async method, it is expected that no exceptions will be thrown by the method itself, but you will be notified through the listener once the operation has been completed successfully (onResponse) and when there was a problem (onFailure).

Could you please post the stacktrace of the exception that you get? Then we can figure out which timeout it is and we can do about it.

Cheers  
Luca

---

<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:** [April 13, 2018, 9:22am UTC](https://discuss.elastic.co/t/rest-high-level-client-timeoutexception/123668/3 "2018-04-13T09:22:55Z")

</div>

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