Skip to content

RedisVectorStore does not properly close Jedis pipelines #422

@Bragolgirith

Description

@Bragolgirith

The RedisVectorStore #add and #delete methods retrieve a Jedis Pipeline (which is Closable), but never call the #close method.
Multiple calls to RedisVectorStore#add thus eventually exhaust all available pool resources and lead to an exception:

Exception encountered during context initialization - cancelling refresh attempt: redis.clients.jedis.exceptions.JedisException: Could not get a resource from the pool

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions