BigCat
BigCat
这些书你是都看完了,还是挑着有兴趣的翻来看。
Wait a moment,I will reproduce it,and provide more details.
My test code: ``` java @Test public void testSentinelWithAuth() throws InterruptedException { Config config = new Config(); config.useSentinelConnection().setPassword("foobared") .setMasterName("mymaster") .addSentinelAddress("192.168.27.111:26379", "192.168.27.112:26379"); Redisson redisson = Redisson.create(config); final List list = redisson.getList("cms_list");...
My computer :2.7 GHz Intel Core i7 16 GB 1600 MHz DDR3, The test result is not satisfactory,an average of 750 times per second
It's a bug,when a connection can not be used,it always be return back to pool ``` java @Override public boolean addAll(Collection c) { RedisConnection conn = connectionManager.connectionWriteOp(); try { conn.rpush(getName(),...
Sorry,i will update and try immediately
``` java com.lambdaworks.redis.RedisException: Command timed out at com.lambdaworks.redis.RedisAsyncConnection.await(RedisAsyncConnection.java:1195) at com.lambdaworks.redis.RedisConnection.await(RedisConnection.java:852) at com.lambdaworks.redis.RedisConnection.rpush(RedisConnection.java:489) at org.redisson.RedissonList.addAll(RedissonList.java:134) at org.redisson.RedissonList.add(RedissonList.java:85) at org.redisson.SentinelTest$1.run(SentinelTest.java:49) at java.lang.Thread.run(Thread.java:744) ``` When redis occur failover,the exception above coast too much...
The bug has been resolved, your solution is the same as I think, hahahaha.
Try again a few times,if still failed,warning.I have seen your code,if a connection is closed,this connection can still return to the queue?I know in the lastest version jedis,jedis client close()...
Thinks.My jedis version is 2.4.2,i have tried the version 2.5.1,it solve my problem.