Skip to content

Commit d16a15a

Browse files
committed
fix(cluster): add some comment
1 parent 7508528 commit d16a15a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/query/service/src/api/rpc/packets/packet_data.rs

+5
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ pub enum DataPacket {
5656
progress: Vec<ProgressInfo>,
5757
precommit: Vec<PrecommitBlock>,
5858
},
59+
// NOTE: Unknown reason. This may be tonic's bug.
60+
// when we use two-way streaming grpc for data exchange,
61+
// if the client side is closed and the server side reads data immediately.
62+
// we will get a broken pipe or connect reset error.
63+
// we use the ClosingClient to notify the server side to close the connection for avoid errors.
5964
ClosingClient,
6065
}
6166

0 commit comments

Comments
 (0)