Skip to content

Retry not working with coroutines  #334

@sangyongchoi

Description

@sangyongchoi

Hi. I'm having the same problem with issue #277.

In code written without coroutines, the responseObserver. If an error is raised through onError , retry works normally.
However, if coroutines are included and throw StatusRuntimeException inside it, the retry doesn't work.

I put an example here
This example was created by forking this repository.

If line 27 of io.grpc.examples.helloworld.HelloWorldServer is activated, retry does not work.
only come in once
image

If line 28 of io.grpc.examples.helloworld.HelloWorldServer is activated, retry work.
come in 5 times

image

My guess is that it doesn't work because of the value of endOfStream of NettyClientStream.transportHeadersReceived.
false when used with coroutines, but true when used without coroutines.

this is intentional?
thank you.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions