When hitting the stale events api, and clear_recovered=true, if seems there is a timeout and the response is "empty reply from server". On the server side, everything seems to work ok though and recovered events are cleared. You prob need a high volume of events to clear to reproduce this problem.
curl 127.0.0.1:8080/api/events/stale?clear_recovered=true
curl: (52) Empty reply from server
One suggestion is to use bulk delete to delete the docs instead of looping through them one by one.
When hitting the stale events api, and clear_recovered=true, if seems there is a timeout and the response is "empty reply from server". On the server side, everything seems to work ok though and recovered events are cleared. You prob need a high volume of events to clear to reproduce this problem.
One suggestion is to use bulk delete to delete the docs instead of looping through them one by one.