当前位置:   article > 正文

org.redisson.client.WriteRedisConnectionException: Unable to send command_unable to send command! node source: nodesource

unable to send command! node source: nodesource
  1. org.redisson.client.WriteRedisConnectionException: Unable to send command! Node source: NodeSource [slot=null, addr=null, redisClient=null, redirect=null, entry=MasterSlaveEntry [masterEntry=[freeSubscribeConnectionsAmount=1, freeSubscribeConnectionsCounter=value:50:queue:0, freeConnectionsAmount=30, freeConnectionsCounter=value:62:queue:0, freezed=false, freezeReason=null, client=[addr=redis://192.168.1.99:6379], nodeType=MASTER, firstFail=0]]], connection: RedisConnection@1763746597 [redisClient=[addr=redis://192.168.1.99:6379], channel=[id: 0x430fbd80, L:/192.168.1.145:64353 ! R:192.168.1.99/192.168.1.99:6379], currentCommand=null], command: (GET), params: [adminToken:userId:dbabe086d390468b9b0ff99302f2d657] after 3 retry attempts
  2. 07-25 16:20 INFO - c.s.m.filter.AuthorizationFilter 请求令牌无效或已过期...
  3. at org.redisson.command.CommandAsyncService.checkWriteFuture(CommandAsyncService.java:872)
  4. at org.redisson.command.CommandAsyncService.access$000(CommandAsyncService.java:97)
  5. at org.redisson.command.CommandAsyncService$7.operationComplete(CommandAsyncService.java:791)
  6. at org.redisson.command.CommandAsyncService$7.operationComplete(CommandAsyncService.java:788)
  7. at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)
  8. at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:485)
  9. at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424)
  10. at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:121)
  11. at io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetFailure(AbstractChannel.java:991)
  12. at io.netty.channel.AbstractChannel$AbstractUnsafe.write(AbstractChannel.java:873)
  13. at io.netty.channel.DefaultChannelPipeline$HeadContext.write(DefaultChannelPipeline.java:1391)
  14. at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)
  15. at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730)
  16. at io.netty.channel.AbstractChannelHandlerContext.access$1700(AbstractChannelHandlerContext.java:38)
  17. at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.write(AbstractChannelHandlerContext.java:1104)
  18. at io.netty.channel.AbstractChannelHandlerContext$WriteAndFlushTask.write(AbstractChannelHandlerContext.java:1151)
  19. at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.run(AbstractChannelHandlerContext.java:1075)
  20. at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:163)
  21. at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
  22. at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
  23. at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
  24. at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
  25. at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
  26. at java.lang.Thread.run(Thread.java:748)
  27. Caused by: java.nio.channels.ClosedChannelException
  28. at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source)

我的redis配置如下

  1. public RedissonClient redissonSingle() {
  2. RedissonClient redissonClient=null;
  3. try {
  4. Config config = new Config();
  5. config.setCodec(new JsonJacksonCodec());
  6. SingleServerConfig serverConfig = config.useSingleServer()
  7. .setAddress("192.168.1.123")
  8. .setDatabase(0);
  9. serverConfig.setKeepAlive(true);
  10. serverConfig.setPingConnectionInterval(500);
  11. serverConfig.setPingTimeout(10000);
  12. serverConfig.setTimeout(10000);
  13. serverConfig.setConnectTimeout(10000);
  14. serverConfig.setConnectionMinimumIdleSize(32);
  15. serverConfig.setConnectionPoolSize(64);
  16. redissonClient= Redisson.create(config);
  17. System.out.println("redisson create end ");
  18. } catch (Exception e) {
  19. e.printStackTrace();
  20. }
  21. return redissonClient;

我的redis版本

<!-- https://mvnrepository.com/artifact/org.redisson/redisson -->
<dependency>
   <groupId>org.redisson</groupId>
   <artifactId>redisson</artifactId>
   <version>3.11.1</version>
</dependency>

 

声明:本文内容由网友自发贡献,转载请注明出处:【wpsshop】
推荐阅读
相关标签
  

闽ICP备14008679号