赞
踩
- 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
- 07-25 16:20 INFO - c.s.m.filter.AuthorizationFilter 请求令牌无效或已过期...
- at org.redisson.command.CommandAsyncService.checkWriteFuture(CommandAsyncService.java:872)
- at org.redisson.command.CommandAsyncService.access$000(CommandAsyncService.java:97)
- at org.redisson.command.CommandAsyncService$7.operationComplete(CommandAsyncService.java:791)
- at org.redisson.command.CommandAsyncService$7.operationComplete(CommandAsyncService.java:788)
- at io.netty.util.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:511)
- at io.netty.util.concurrent.DefaultPromise.notifyListenersNow(DefaultPromise.java:485)
- at io.netty.util.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:424)
- at io.netty.util.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:121)
- at io.netty.channel.AbstractChannel$AbstractUnsafe.safeSetFailure(AbstractChannel.java:991)
- at io.netty.channel.AbstractChannel$AbstractUnsafe.write(AbstractChannel.java:873)
- at io.netty.channel.DefaultChannelPipeline$HeadContext.write(DefaultChannelPipeline.java:1391)
- at io.netty.channel.AbstractChannelHandlerContext.invokeWrite0(AbstractChannelHandlerContext.java:738)
- at io.netty.channel.AbstractChannelHandlerContext.invokeWrite(AbstractChannelHandlerContext.java:730)
- at io.netty.channel.AbstractChannelHandlerContext.access$1700(AbstractChannelHandlerContext.java:38)
- at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.write(AbstractChannelHandlerContext.java:1104)
- at io.netty.channel.AbstractChannelHandlerContext$WriteAndFlushTask.write(AbstractChannelHandlerContext.java:1151)
- at io.netty.channel.AbstractChannelHandlerContext$AbstractWriteTask.run(AbstractChannelHandlerContext.java:1075)
- at io.netty.util.concurrent.AbstractEventExecutor.safeExecute$$$capture(AbstractEventExecutor.java:163)
- at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java)
- at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:404)
- at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:474)
- at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:909)
- at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
- at java.lang.Thread.run(Thread.java:748)
- Caused by: java.nio.channels.ClosedChannelException
- at io.netty.channel.AbstractChannel$AbstractUnsafe.write(...)(Unknown Source)
我的redis配置如下
- public RedissonClient redissonSingle() {
- RedissonClient redissonClient=null;
- try {
- Config config = new Config();
- config.setCodec(new JsonJacksonCodec());
- SingleServerConfig serverConfig = config.useSingleServer()
- .setAddress("192.168.1.123")
- .setDatabase(0);
- serverConfig.setKeepAlive(true);
- serverConfig.setPingConnectionInterval(500);
- serverConfig.setPingTimeout(10000);
- serverConfig.setTimeout(10000);
- serverConfig.setConnectTimeout(10000);
- serverConfig.setConnectionMinimumIdleSize(32);
- serverConfig.setConnectionPoolSize(64);
- redissonClient= Redisson.create(config);
- System.out.println("redisson create end ");
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- return redissonClient;
我的redis版本
<!-- https://mvnrepository.com/artifact/org.redisson/redisson --> <dependency> <groupId>org.redisson</groupId> <artifactId>redisson</artifactId> <version>3.11.1</version> </dependency>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。