Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

ServerDisconnectedError #77

Closed
paulnovacovici opened this issue Apr 23, 2020 · 2 comments
Closed

ServerDisconnectedError #77

paulnovacovici opened this issue Apr 23, 2020 · 2 comments

Comments

@paulnovacovici
Copy link

When trying to save many documents to an index I'm running into the occasional disconnect for some reason:

elasticsearch.exceptions.ConnectionError: ConnectionError() caused by: ServerDisconnectedError()

Any way we to remedy this? Not sure why it happens, but setting up a retry on error may help mitigate this error.

@sethmlarson
Copy link
Contributor

sethmlarson commented Apr 23, 2020

aiohttp raises this exception when the server half-closes their end of the socket. I wonder if this is something that is happening when the server closes a keep-alive connection after it's lifetime timeout.

As long as max_retries is not zero (defaults to 3) you should automatically be getting retries on ConnectionErrors, is that the case?

@sethmlarson
Copy link
Contributor

sethmlarson commented Jul 20, 2020

Closing this due to lack of information. Please reopen on elastic/elasticsearch-py repository if you have more information. See #81 for more info.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants