JedisException that seems to be out of application direct control #2603
Unanswered
Anand-Tableau
asked this question in
Q&A
Replies: 3 comments 4 replies
-
No
No
This is not an issue in Jedis. It used to swallow many internal exceptions. Some of those exceptions are now logged upon users' requests.
Set the logging level of |
Beta Was this translation helpful? Give feedback.
1 reply
-
Beta Was this translation helpful? Give feedback.
3 replies
-
I have the same problem |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, we are seeing this exception after we upgraded from Jedis 2.9.0 to Jedis 3.6.0
The callstack seems to originate from commons-pool2 eviction timer that seems to be out of our direct control, is that timer managed by Jedis ?
I will be looking up how commons-pool2 is supposed to work, but is JedisFactory.destroyObject supposed to return the object to the pool when the pool itself is invoking destroy object for an evicted/destroyed object ?
Our testing suggests that this is not causing any issue in terms of functionality, but it is generating a lot of noise in log and will overwhelm splunk if we deployed it to production. If this is an issue in Jedis, is there some way of suppressing this warning without waiting for a patch from Jedis ?
Call stack is further below.
Thank you,
Anand
2021-07-21 06:59:59.599 +0000 (,,,,,,) commons-pool-evictor-thread : WARN redis.clients.jedis.JedisFactory - Error while close redis.clients.jedis.exceptions.JedisException: Could not return the broken resource to the pool at redis.clients.jedis.util.Pool.returnBrokenResourceObject(Pool.java:116) ~[jedis-3.6.0.jar:?] at redis.clients.jedis.util.Pool.returnBrokenResource(Pool.java:98) ~[jedis-3.6.0.jar:?] at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:378) ~[jedis-3.6.0.jar:?] at redis.clients.jedis.JedisPool.returnResource(JedisPool.java:15) ~[jedis-3.6.0.jar:?] at redis.clients.jedis.Jedis.close(Jedis.java:3957) ~[jedis-3.6.0.jar:?] at redis.clients.jedis.JedisFactory.destroyObject(JedisFactory.java:166) [jedis-3.6.0.jar:?] at org.apache.commons.pool2.PooledObjectFactory.destroyObject(PooledObjectFactory.java:126) [commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.destroy(GenericObjectPool.java:958) [commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.evict(GenericObjectPool.java:797) [commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.BaseGenericObjectPool$Evictor.run(BaseGenericObjectPool.java:1160) [commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.EvictionTimer$WeakRunner.run(EvictionTimer.java:213) [commons-pool2-2.9.0.jar:2.9.0] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?] at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305) [?:?] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305) [?:?] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?] at java.lang.Thread.run(Thread.java:829) [?:?] Caused by: java.lang.IllegalStateException: Invalidated object not currently part of this pool at org.apache.commons.pool2.impl.GenericObjectPool.invalidateObject(GenericObjectPool.java:642) ~[commons-pool2-2.9.0.jar:2.9.0] at org.apache.commons.pool2.impl.GenericObjectPool.invalidateObject(GenericObjectPool.java:620) ~[commons-pool2-2.9.0.jar:2.9.0] at redis.clients.jedis.util.Pool.returnBrokenResourceObject(Pool.java:114) ~[jedis-3.6.0.jar:?] ... 16 more
Beta Was this translation helpful? Give feedback.
All reactions