V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
wshcdr
V2EX  ›  Redis

Redisson 相关

  •  
  •   wshcdr · 2019-03-07 19:39:14 +08:00 · 10031 次点击
    这是一个创建于 2116 天前的主题,其中的信息可能已经有所发展或是发生改变。

    最近在使用 Redisson,但是发现 RedissonClient.shutdown() 有点问题,类似下面的代码

     RedissonClient redisson = Redisson.create();
    redisson.shutdown();
    

    在我这里居然报错类似下面这样

    18:41:26.880 [redisson-netty-1-1] ERROR org.redisson.client.handler.CommandsQueue - Exception occured. Channel: [id: 0xa6af4562, L:/127.0.0.1:53567 - R:127.0.0.1/127.0.0.1:6379]
    java.io.IOException: 远程主机强迫关闭了一个现有的连接。
    	at sun.nio.ch.SocketDispatcher.read0(Native Method)
    	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
    	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    	at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
    	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
    	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
    	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347)
    	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529)
    	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491)
    	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
    	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    	at java.lang.Thread.run(Thread.java:748)
    18:41:26.880 [redisson-netty-1-11] ERROR org.redisson.client.handler.CommandsQueue - Exception occured. Channel: [id: 0x02045ab0, L:/127.0.0.1:53569 - R:127.0.0.1/127.0.0.1:6379]
    java.io.IOException: 远程主机强迫关闭了一个现有的连接。
    	at sun.nio.ch.SocketDispatcher.read0(Native Method)
    	at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:43)
    	at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
    	at sun.nio.ch.IOUtil.read(IOUtil.java:192)
    	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
    	at io.netty.buffer.PooledUnsafeDirectByteBuf.setBytes(PooledUnsafeDirectByteBuf.java:288)
    	at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:1132)
    	at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:347)
    	at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:148)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:677)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:612)
    	at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:529)
    	at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:491)
    	at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
    	at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
    	at java.lang.Thread.run(Thread.java:748)
    

    不太清楚到底是怎么回事?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2491 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 03:34 · PVG 11:34 · LAX 19:34 · JFK 22:34
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.