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))
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.