当前位置:   article > 正文

JedisClusterMaxAttemptsException: No more cluster attempts left.

no more cluster attempts left

jediscluster入数据报错:

Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is redis.clients.jedis.exceptions.JedisClusterMaxAttemptsException: No more cluster attempts left.] with root cause

redis.clients.jedis.exceptions.JedisClusterMaxAttemptsException: No more cluster attempts left.
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:86) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:124) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:124) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:124) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:124) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.JedisClusterCommand.runWithRetries(JedisClusterCommand.java:124) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.JedisClusterCommand.runBinary(JedisClusterCommand.java:49) ~[jedis-3.1.0.jar!/:na]
	at redis.clients.jedis.BinaryJedisCluster.hset(BinaryJedisCluster.java:445) ~[jedis-3.1.0.jar!/:na]

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12

报错方法:

hset(String key,Map<String,String> valueMap)

检测到一次set的数据量达到110万条,全在map里面一次性hset报错。
解决,分批次hset,将map的size控制在10万左右。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/638483
推荐阅读
相关标签
  

闽ICP备14008679号