New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JedisPool exhausted in Jedis 2.10.0 #1920
Comments
See #1911 |
Sorry, looks like this is still broken in |
Is there any update on this? Should we open a new bug against 2.10.1? |
I think, it's because of 02f2cc5#diff-df2421269af8d142bf842cb0141f3a95R3639 @gkorland ping |
@gkorland All our threads have this StackTrace (it waits infinite time)
|
FYI: we're running now with 2.10.2 for several days without any connection leak. |
@kutzi that's great! |
Reset shardjedis dataSource before returned to pool Related to #1920 As it had fixed in Jedis.java, SharedJedis.java should be fixed too.
I have updated our jedis version from 2.9.1 (Spring boot 1.5.19) to 2.10.2 we have got following exception; "pool-8-thread-12" #67 prio=5 os_prio=0 tid=0x00005603bac71800 nid=0x60 waiting on condition [0x00007f68ae799000] |
Reset shardjedis dataSource before returned to pool Related to #1920 As it had fixed in Jedis.java, SharedJedis.java should be fixed too.
Reset shardjedis dataSource before returned to pool Related to #1920 As it had fixed in Jedis.java, SharedJedis.java should be fixed too.
I use Jedis 2.9.3, it seems like the problem still remains in spite of #1947 . In our case, we set spring.redis.pool.max-active to 4 and ran into the same connection pool leak problem.
|
I am also facing the same issue with Jedis 2.9.3. The application runs fine without issues for around 3-4 hours and then all the connections show timed waiting in the thread stack and my application throws the "Could not get resource" exception.
Is this issue resolved in Jedis 2.10.2? |
There is a little mistake in the top comment.
It should be: |
I encountered the same situation with jedis 2.9.1.All connections are exhausted, and all threads are blocked waiting for connections
|
|
@sazzad16 I just ran mvn dependency:tree and got the following:
I do not see any other commons-pool2 being used in my project |
@loop Can you try a commons-pool2 version which is neither of 2.5.x, 2.6.x, 2.7.x? |
@sazzad16 Will do. Do I need to set any additional config as well? Because I'm just using creating my cluster like this:
|
@loop There's no perfect answer. It really depends on your application. |
Jedis.java
JedisSentinelPool.java
In the case of concurrency
Thread A return an object but not run to "this.dataSource = null" yet
Thread B borrow an object and set dataSource to this;
And Then Thread A run this.dataSource = null;
Finally Thread A will never returnResource because dataSource is null
Jedis version:
2.10.0
The text was updated successfully, but these errors were encountered: