-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: About ServerDisconnectedError(Server disconnected) in ElasticsearchStore #11641
Comments
Hey @Hspix, back at it with another tech mystery, I see! 😄 Good to have you reaching out again. Thank you for bringing this issue to our attention. The The To address the
As for the If the issue persists even after checking these areas, consider implementing a retry mechanism for your queries. If you need further assistance, please provide more details about your Elasticsearch server configuration and the exact steps to reproduce the issue. Sources
|
If you know the fix or feel up to it, I highly encourage a PR :) |
me too |
Bug Description
When there are more than 10 queries running simultaneously, the AsyncElasticsearch client may raise a
ServerDisconnectedError(Server disconnected)
exception, as shown below:elastic_transport.ConnectionError: Connection error caused by: ConnectionError(Connection error caused by: ServerDisconnectedError(Server disconnected))
Version
llama-index=0.10.14
llama-index-vector-stores-elasticsearch=0.1.5
Steps to Reproduce
A potential issue with the
aquery
method in thellama_index.vector_stores.elasticsearch.base
module could be the cause of this problem, as shown below:I tried running the code block independently with manual queries, but it still generated the same exception.
However, nothing happens when using the async client directly without
async with
:So, I guess that
async with
is redundant?Relevant Logs/Tracbacks
No response
The text was updated successfully, but these errors were encountered: