ISSUE:
When a connection is reset (closed) by a peer the Netty framework shuts down the channel with a ChannelClosedException, skipping calls to RntbdRequestManger.exceptionCaught and RntbdRequestManager.close. Consequently, pending requests, if any, are not released and RntbdRequestManger.channelUnregistered throws an IllegalStateException.
RESOLUTION:RntbdRequestManager.channelUnregistered should
call RntbdRequestManager.completeAllPendingRequestsExceptionally to ensure that all pending requests are released and
ISSUE: When a connection is reset (closed) by a peer the Netty framework shuts down the channel with a
ChannelClosedException
, skipping calls toRntbdRequestManger.exceptionCaught
andRntbdRequestManager.close
. Consequently, pending requests, if any, are not released andRntbdRequestManger.channelUnregistered
throws anIllegalStateException
.RESOLUTION:
RntbdRequestManager.channelUnregistered
shouldRntbdRequestManager.completeAllPendingRequestsExceptionally
to ensure that all pending requests are released andIllegalStateException