#4690·jedis

如果重新连接失败,则关闭断开的连接会抛出异常

作者: sa7msw创建于 2026年8月18日更新于 2026年8月20日

Given a broken Jedis client connection, if you try to `close()` it and its connection pool replacement cannot connect to the server, a `JedisException` is propagated from the `close()` method. This seems both undesirable and unexpected – as a user, I just want to close and release any resources allocated to the connection, I should not have to deal with problems caused by other side effects like repopulating the connection pool.