grpc / grpc/grpc-java

async client stub: need to ignore unary response msg if status is not OK

Open
#5,968 2 comments 0 reactions 1 assignee Claimed by @ran-su View on GitHub
bug
Dominant language
Java
Stars
12.1k
Forks
4k
Avg merge
2d 17h
Merged PRs (30d)
37

Description

The future and blocking APIs wait until the close() before delivering any received message. If the status is an error they throw away the request.

https://github.com/grpc/grpc-java/blob/1c9345987f6501c43c748ad15b410f695a75bef3/stub/src/main/java/io/grpc/stub/ClientCalls.java#L481-L491

We need to do the same for async stub. See also https://github.com/grpc/grpc/issues/12824

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.