redis.clients.jedis.exceptions.JedisException: Could not return the resource to the pool at `redis.clients.util.Pool.returnBrokenResourceObject(Pool.java:103)`


Solutions on the web

Solution icon of github
via GitHub by anandsaha87
, 8 months ago
Could not return the resource to the pool at `redis.clients.util.Pool.returnBrokenResourceObject(Pool.java:103)`

Stack trace

redis.clients.jedis.exceptions.JedisException: Could not return the resource to the pool
       at `redis.clients.util.Pool.returnBrokenResourceObject(Pool.java:103)`
	at redis.clients.jedis.JedisPool.returnBrokenResource(JedisPool.java:112)
	at redis.clients.jedis.JedisPool.returnBrokenResource(JedisPool.java:12)
	at redis.clients.jedis.Jedis.close(Jedis.java:3355)
	at redis.clients.jedis.JedisClusterCommand.releaseConnection(JedisClusterCommand.java:160)
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:154)
	at redis.clients.jedis.JedisClusterCommand.run(JedisClusterCommand.java:30)
	at redis.clients.jedis.JedisCluster.pttl(JedisCluster.java:212)
	at com.platform.utils.redis.RedisUtils.pttl(RedisUtils.java:161)
Caused by: java.lang.IllegalStateException: Invalidated object not currently part of this pool
	at org.apache.commons.pool2.impl.GenericObjectPool.invalidateObject(GenericObjectPool.java:640)
	at redis.clients.util.Pool.returnBrokenResourceObject(Pool.java:101)
	... 8 more

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Once, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago