Bootstrap

Redisson类报错:ClusterConnectionManager [ERROR] Can't connect to master: redis://127.0.0.1:7000

依旧是原程序使用新的redis集群后发现的问题。
调用redis插入数据的api是使用正常的,一旦调用Redisson类,就会报错如下:

  • 2019-04-30 10:01:22.242 o.r.c.ClusterConnectionManager [ERROR] Can’t connect to master: redis://127.0.0.1:7000 with slot ranges: [[0-5461]]
  • 2019-04-30 10:01:22.242 o.r.c.ClusterConnectionManager [ERROR] Can’t connect to master: redis://127.0.0.1:7001 with slot ranges: [[5462-10922]]
  • 2019-04-30 10:01:22.247 o.r.c.ClusterConnectionManager [ERROR] Can’t connect to master: redis://127.0.0.1:7002 with slot ranges: [[10923-16383]]
  • 2019-04-30 10:01:22.259 o.r.c.h.CommandsQueue [ERROR] Exception occured. Channel: [id: 0xe9281f53, 0.0.0.0/0.0.0.0:53002 :> /10.153.73.131:7000]
  • java.lang.IllegalStateException: cannot be started once stopped
  • 2019-04-30 10:02:13.445 o.a.s.util [ERROR] Received error in main thread… terminating server…
    java.lang.ExceptionInInitializerError
  • Caused by: org.redisson.client.RedisConnection
;