Skip to content

gRPC RESOURCE_EXHAUSTED with quarkus.grpc.server.use-separate-server=false #43573

@ncabanis

Description

@ncabanis

Describe the bug

When using quarkus.grpc.server.use-separate-server=false sending a gRPC message of 256 KB results in RESOURCE_EXHAUSTED. This does not happen with quarkus.grpc.server.use-separate-server=true.
Furthermore, quarkus.grpc.server.max-inbound-message-size has no effect. Even though the default is 4 MB anyways for Java gRPC.

Expected behavior

The integrated gRPC server should behave the same as the separate gRPC server and the configuration should be the same.

Actual behavior

No response

How to Reproduce?

  1. Generate the default starter with gRPC.
  2. In application.properties, set quarkus.grpc.server.use-separate-server=false
  3. Update the generated test case and execute:
    @Test
    void testHello() {
        var sizeInChars = 256 * 1024;
        helloGrpc.sayHello(
                HelloRequest.newBuilder().setName("a".repeat(sizeInChars)).build()
        ).await().atMost(Duration.ofSeconds(5));
    }

code-with-quarkus.zip

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions