This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 1f2e830 RATIS-1529. Handle when there is an exception in
NettyServerStreamRpc#getDataStreamOutput (#606)
1f2e830 is described below
commit 1f2e83001b82b9560e6a45c107fa9fa5854e0f73
Author: hao guo <[email protected]>
AuthorDate: Sat Feb 26 22:12:40 2022 +0800
RATIS-1529. Handle when there is an exception in
NettyServerStreamRpc#getDataStreamOutput (#606)
---
.../main/java/org/apache/ratis/netty/server/NettyServerStreamRpc.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/ratis-netty/src/main/java/org/apache/ratis/netty/server/NettyServerStreamRpc.java
b/ratis-netty/src/main/java/org/apache/ratis/netty/server/NettyServerStreamRpc.java
index a307e04..95e045d 100644
---
a/ratis-netty/src/main/java/org/apache/ratis/netty/server/NettyServerStreamRpc.java
+++
b/ratis-netty/src/main/java/org/apache/ratis/netty/server/NettyServerStreamRpc.java
@@ -99,6 +99,7 @@ public class NettyServerStreamRpc implements
DataStreamServerRpc {
try {
outs.add((DataStreamOutputRpc)
map.getProxy(peer.getId()).stream(request));
} catch (IOException e) {
+ map.handleException(peer.getId(), e, true);
throw new IOException(map.getName() + ": Failed to
getDataStreamOutput for " + peer, e);
}
}