# Refresh on index hangs

**URL:** <https://discuss.elastic.co/t/refresh-on-index-hangs/173646>\
**Category:** Elasticsearch\
**Created:** [March 24, 2019, 5:02pm UTC](https://discuss.elastic.co/t/refresh-on-index-hangs/173646 "2019-03-24T17:02:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Igor\_Yakushin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_yakushin/32/42652_2.png) [@Igor\_Yakushin](https://discuss.elastic.co/u/Igor_Yakushin)\
**Post date:** [March 24, 2019, 5:02pm UTC](https://discuss.elastic.co/t/refresh-on-index-hangs/173646/1 "2019-03-24T17:02:22Z")

</div>

Hi All,  
Running refresh on an index sometimes hangs forever and sometimes works (from python,  
using elasticsearch module):

r = requests.post(es\_url+'/' + myindex + '/\_refresh?pretty', auth=(username, password))  
print(r.text)

The index is tiny. Couple small documents were inserted into it before running refresh.  
Restarting Elastic Search fixes the problem for a while but then it starts again.  
I am using Elastic Search version 6.2.1. There are 7 nodes in the cluster.  
Thank you,  
Igor

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [March 24, 2019, 7:34pm UTC](https://discuss.elastic.co/t/refresh-on-index-hangs/173646/2 "2019-03-24T19:34:32Z")

</div>

When you say "forever" how long are you waiting? Is the cluster otherwise responsive? What kind of load does it see?

Can you reproduce with `curl`? Would be good to rule out something client-side.

Can you look at `GET _nodes/hot_threads?threads=9999` to see if there's a thread stuck doing the refresh somewhere, and also look at `GET _tasks` to see if the refresh task is still pending?

Is there any suggestion of something going wrong in the server logs?

There were quite a few changes to the replication logic in 6.3. Can you reproduce this on a more recent version?

---

<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 21, 2019, 7:34pm UTC](https://discuss.elastic.co/t/refresh-on-index-hangs/173646/3 "2019-04-21T19:34:42Z")

</div>

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