问题现象
场景:使用redisson锁,redis–server是集群方式,三主三从
错误信息有:
Unable to write command into connection! Increase connection pool size. Node source: NodeSource [slot=5073, addr=null, redisClient=null, redirect=null, entry=null], connection: RedisConnection@1161754400 [redisClient=[addr=redis://172.21.75.153:6379], channel=[id: 0x8490cd34, L:0.0.0.0/0.0.0.0:33988 ! R:172.21.75.153/172.21.75.153:6379], currentCommand=null, usage=1], command: (EXISTS), params: [redisLock_serviceLock] after 3 retry attempts
org.redisson.client.RedisConnectionException: SlaveConnectionPool no available Redis entries. Master entry host: 172.21.75.157/172.21.75.157:6379 Disconnected hosts: [172.21.75.157/172.21.75.157:6379] Hosts disconnected due to errors during `failedSlaveCheckInterval`: [172.21.75.153/172.21.75.153:6379]
org.redisson.client.RedisConnectionException: SlaveConnectionPool no available Redis entries. Master entry host: 172.21.75.157/172.21.75.157:6379 Disconnected hosts: [172.21.75.157/172.21.75.157:6379, 172.21.75.153/172.21.75.153:6379]
redisson 官方github让升级版本,但这已经是20版本。