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