jcasbin / redis-watcher

Redis watcher for jCasbin
https://github.com/casbin/jcasbin
Apache License 2.0
4 stars 12 forks source link

Open redis connection pool configuration #23

Closed yicm closed 2 years ago

yicm commented 2 years ago

Could not configure the redis connection pool parameters. Can you open redis connection pool configuration?

redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
    at redis.clients.jedis.util.Pool.getResource(Pool.java:84)
    at redis.clients.jedis.JedisPool.getResource(JedisPool.java:370)
    at org.casbin.watcher.SubThread.run(SubThread.java:29)
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
    at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:202)
    at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:43)
    at redis.clients.jedis.Protocol.process(Protocol.java:158)
    at redis.clients.jedis.Protocol.read(Protocol.java:223)
    at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:352)
    at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:270)
    at redis.clients.jedis.BinaryJedis.auth(BinaryJedis.java:2717)
    at redis.clients.jedis.BinaryJedis.initializeFromClientConfig(BinaryJedis.java:94)
    at redis.clients.jedis.BinaryJedis.<init>(BinaryJedis.java:292)
    at redis.clients.jedis.Jedis.<init>(Jedis.java:167)
    at redis.clients.jedis.JedisFactory.makeObject(JedisFactory.java:177)
    at org.apache.commons.pool2.impl.GenericObjectPool.create(GenericObjectPool.java:918)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:431)
    at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:356)
    at redis.clients.jedis.util.Pool.getResource(Pool.java:75)
    ... 2 more
casbin-bot commented 2 years ago

@tangyang9464 @seriouszyx @elfisworking @fangzhengjin

hsluoyz commented 2 years ago

@Abingcbc @seriouszyx