Skip to content

StatusException: UNAVAILABLE on client when maxConnectionAge is set on server #9566

Open
@usischev

Description

What version of gRPC-Java are you using?

1.49.0
Also grpc-kotlin 1.3.0

What is your environment?

MacOS 12.5.1 with OpenJdk 17.0.2
Ubuntu 18.04.3 with OpenJdk 17.0.3

What did you expect to see?

GRPC NettyServer is configured with maxConnectionAge of 1 second and maxConnectionAgeGrace of 300 seconds. Client sends requests with large response size (4 MB). Client receives responses successfully.

What did you see instead?

Eventually the client throws io.grpc.StatusException: UNAVAILABLE after receiving GOAWAY from the server. We first saw this behavior with large request size on our production and testing environments running on Linux. Then we were able to reproduce using a minimal project with large response size on MacOS.

Steps to reproduce the bug

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions