[
https://issues.apache.org/jira/browse/RATIS-2349?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze resolved RATIS-2349.
-------------------------------
Fix Version/s: 3.2.1
Resolution: Fixed
The pull request is now merged. Thanks, [~jerrylei] !
> NettyClient#writeAndFlush should support throwing AlreadyClosedException
> ------------------------------------------------------------------------
>
> Key: RATIS-2349
> URL: https://issues.apache.org/jira/browse/RATIS-2349
> Project: Ratis
> Issue Type: Bug
> Components: Netty
> Reporter: Xianming Lei
> Assignee: Xianming Lei
> Priority: Major
> Fix For: 3.2.1
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> After RATIS-2329,
> [NettyRpcProxy|https://github.com/apache/ratis/blob/master/ratis-netty/src/main/java/org/apache/ratis/netty/NettyRpcProxy.java#L131]
> will close connection in exceptionCaught, NettyClient#writeAndFlush should
> support throwing AlreadyClosedException, otherwise, the following problems
> will occur.
> {{25/10/29 11:13:52,786 WARN
> [1@group-47BEDE733167->2-LogAppenderDefault-LogAppenderDaemon] LogAppender:
> 1@group-47BEDE733167->2-LogAppenderDefault: Failed to installSnapshot
> SingleFileSnapshotInfo(t:1,
> i:197600537):[/mnt/ssd/0/celeborn_ratis/c5196f6d-2c34-3ed3-8b8a-47bede733167/sm/snapshot.1_197600537]:
> java.lang.IllegalStateException: STATE MISMATCHED: In NettyClient, current
> state CLOSED is not one of the expected states [RUNNING]}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)