Jedis: Timeout waiting for idle object #3820
-
| I'm getting  
   private val jedisPoolConfig: JedisPoolConfig = {
    val config = new JedisPoolConfig()
    config.setMaxTotal(poolConfig.maxTotal)
    config.setMaxIdle(poolConfig.maxIdle)
    config.setMinIdle(4)
    config.setMaxWaitMillis(2000)
    config
  }
val pool = new JedisPool(jedisPoolConfig, redisHost, redisPort, 5000)The error is from  Is there a way to understand why it happens? Logging is not available, AFAIK. | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
| You can do  It's coming from commons-pool (version 2) library. You may check that library to learn more. | 
Beta Was this translation helpful? Give feedback.
You can do
config.setBlockWhenExhausted(false)to avoid that specific exception.It's coming from commons-pool (version 2) library. You may check that library to learn more.