symious commented on code in PR #1179:
URL: https://github.com/apache/ratis/pull/1179#discussion_r1864759151
##########
ratis-netty/src/main/java/org/apache/ratis/netty/server/DataStreamManagement.java:
##########
@@ -479,7 +485,12 @@ private void readImpl(DataStreamRequestByteBuf request,
ChannelHandlerContext ct
try {
if (exception != null) {
replyDataStreamException(server, exception, info.getRequest(),
request, ctx);
- removeDataStream(key, info);
+ }
+ if (close || exception != null) {
Review Comment:
If it's a close message, writeAsync will send the close message to the next
peer.
`info.applyToRemotes(remote -> remote.out.closeAsync());` will send an empty
close message again.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]