# Timed out waiting for relocation hand-off to complete

**URL:** <https://discuss.elastic.co/t/timed-out-waiting-for-relocation-hand-off-to-complete/83717>\
**Category:** Elasticsearch\
**Created:** [April 26, 2017, 2:25pm UTC](https://discuss.elastic.co/t/timed-out-waiting-for-relocation-hand-off-to-complete/83717 "2017-04-26T14:25:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark.S](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Mark.S](https://discuss.elastic.co/u/Mark.S)\
**Post date:** [April 26, 2017, 2:25pm UTC](https://discuss.elastic.co/t/timed-out-waiting-for-relocation-hand-off-to-complete/83717/1 "2017-04-26T14:25:34Z")

</div>

Hi,

I am using Elasicsearch 5.0.0 version.  
I decided to use bulk api and also refresh=wait\_for when running bulk insert.

My cluster has 3 nodes and it has green state.  
I use java for bulk insert, during the insert the thread stuck and I get a warning messages in the log of the elastic for this index.

Looking at the shard state I can see it in RELOCATING state.  
When **I remove refresh=wait\_for** it works with no warning and the thread is finished successfully.  
Another weird thing is that I see the index created, even when the thread is stuck.

Please help me to understand why the thread is stuck and I get those messages.  
How I can debug this situation?

> [2017-04-26T12:38:31,108][WARN][o.e.i.s.IndexShard] [node1] [indextest\_499112][0] timed out waiting for relocation hand-off to complete  
> [2017-04-26T12:38:31,110][WARN][o.e.i.e.Engine] [node1] [indextest\_499112][0] failed engine [timed out waiting for relocation hand-off to complete]  
> [2017-04-26T12:38:31,151][WARN][o.e.i.c.IndicesClusterStateService] [node1] [[indextest\_499112][0]] marking and sending shard failed due to [shard failure, reason [timed out waiting for relocation hand-off to complete]]

Thanks,  
Mark

---

<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:** [May 24, 2017, 2:33pm UTC](https://discuss.elastic.co/t/timed-out-waiting-for-relocation-hand-off-to-complete/83717/2 "2017-05-24T14:33:52Z")

</div>

Closed on May 24, 2017, 2:33pm UTC

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