grpc-java
grpc-java copied to clipboard
async server: need to ignore unary response msg if status is not OK
The expectation for unary responses is that the server will respond with an message or an error. If the server responds with a message and an error, the message should be thrown away. The async API currently would send the message. For unary responses, we should delay sending the response until the onComplete()/onError(). If onError() is called we should not send the message.
https://github.com/grpc/grpc-java/blob/b22017851560197a41015acd90f443f7b9519984/stub/src/main/java/io/grpc/stub/ServerCalls.java#L336-L349
See #5968 and grpc/grpc#12824
I working on this issue and analysis is progress.
@kannanjgithub I started my initial investigation to this defect and found there is no steps how to reproduce it at my local,Can you please suggest me the reprodicing steps of this defect.