-
Notifications
You must be signed in to change notification settings - Fork 1.1k
IllegalStateException: null after the network is disconnected and recovered #1753
Description
Bug Report
I found the error: IllegalStateException: null throw by CommandOutput class in our service after the network of client host is disconnected and recovered;
I restart this client and it runs well
what confused me is that this exception is throw by CommandOutput class not by its subclass
there is the error stack:(get command)
Caused by: java.lang.IllegalStateException: null
at io.lettuce.core.output.CommandOutput.set(CommandOutput.java:85)
at io.lettuce.core.protocol.RedisStateMachine.safeSet(RedisStateMachine.java:358)
at io.lettuce.core.protocol.RedisStateMachine.decode(RedisStateMachine.java:139)
at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:716)
at io.lettuce.core.protocol.CommandHandler.decode0(CommandHandler.java:680)
at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:675)
at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:596)
at io.lettuce.core.protocol.CommandHandler.channelRead(CommandHandler.java:565)
my service would create 2 lettuce instance(cluster mode) and select the least used one to handle request
Environment
- Lettuce version(s): 5.3.0.RELEASE
- Redis version: 4.0.11
- Netty version: 4.1.47.Final