-
Notifications
You must be signed in to change notification settings - Fork 438
RATIS-2349. NettyClient#writeAndFlush should support throwing AlreadyClosedException #1303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…AlreadyClosedException
|
@leixm , thanks for working no this! Please file another JIRA for the follow up. It would be easier to track the issues. |
|
Hi, Please take a look for the failed UT, could you reproduce it in your local environment? |
I tried to reproduce this unit test failure locally, this looks wired.
|
|
@leixm , @OneSizeFitsQuorum , since this PR only change ratis -netty but not ratis -grpc, the test failure of TestReadOnlyRequestWithGrpc must be unrelated. Just have submitted a 10x10 run on master: https://github.com/apache/ratis/actions/runs/19023405871 |
szetszwo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 the change looks good.
It does fail intermittently; filed RATIS-2350 |
|
@leixm , thanks for working on this! @OneSizeFitsQuorum , thanks for reviewing this! |
What changes were proposed in this pull request?
After RATIS-2329, NettyRpcProxy 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]What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/RATIS-2349
How was this patch tested?
Existing UTs.