llama_index icon indicating copy to clipboard operation
llama_index copied to clipboard

[Bug]: OpenSearch Vector Store have a lot of connection problem after #11513

Open rendyfebry opened this issue 9 months ago • 3 comments

Bug Description

I noticed that after #11513, my OpenSearch vector store connection became unstable, and we can confirm this by trending bug reports related to this issue recently. (#13358, #11661, etc)

  • This event loop is already running.
  • ConnectionError(Timeout context manager should be used inside a task) caused by: RuntimeError(Timeout context manager should be used inside a task)
  • etc

I also see it suggested to use asyncio, but even with that we can still get the errors

import nest_asyncio
nest_asyncio.apply()

I also notice, this error getting worse when we use LlamaIndex with FastAPI,

Version

latest

Steps to Reproduce

Just use OpenSearch vector store long enough that you'll notice it's become unstable.

Relevant Logs/Tracbacks

No response

rendyfebry avatar May 23 '24 08:05 rendyfebry