question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR" ,"StatusRuntimeException:UNKNOWN"

See original GitHub issue

Please answer these questions before submitting your issue.

What version of gRPC are you using?

1.0.0, 1.2.0

What JVM are you using (java -version)?

1.8

What did you do?

I am running a gRPC-java server with multiple grpc services defined.

When running multiple stubs which multiple threads share, so multiple rpc calls simultaneously, I am seeing this exception below, the exception is only occasionally appear.

(1) io.grpc.statusRuntimeException: UNKNOWN at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:227) at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:208) at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:141) … … (2) io.grpc.statusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR Received Rst Stream at io.grpc.stub.ClientCalls.toStatusRuntimeException(ClientCalls.java:227) at io.grpc.stub.ClientCalls.getUnchecked(ClientCalls.java:208) at io.grpc.stub.ClientCalls.blockingUnaryCall(ClientCalls.java:141) … …

What is benchmark scenario?

  1. my benchmark is a distributed program: one client to three servers.

  2. client tps: 150k+ /s, each server receive message : 50k+ /s

question:

  1. why the exception is only occasionally appear? Concurrency is too big?
  2. mutiple thread can call the same stub object at the same time?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
longbozhancommented, Dec 13, 2017

I have the same problems when I send a bytes to server, the bytes’s size is about 14Mb, and I have set MAX_SIZE = 50 *1024*1024; channelBuilder.maxMessageSize(MAX_SIZE) (NettyChannelBuilder) nettyServerBuilder.maxMessageSize(MAX_SIZE); @ejona86

0reactions
kaiyangzhangcommented, Apr 17, 2017

The problem has been solved, and the problem is caused by the server. The queue size of grpc server’s thread pool is too small, resulting in tasks submit failed. the server throw exception below:

rejected execution of io.grpc.internal.SerializingExecutor$TaskRunner@5f207f61 on AsThreadPoolExecutor[GrpcServer_ASTERIA_SERVER, queue capacity=200, com.fiberhome.asteriadb.common.concurrent.AsthreadPoolExecutor@5dcfbbfe[Running, pool size=100, active threads =100, queued tasks =200, completed tasks =3473355]] at com.fiberhome.asteriadb.common.concurrent.AsAbortPolicy.rejectedExecution at java.util.concurrent.ThreadPoolExecutor.reject at java.util.concurrent.ThreadPoolExecutor.execute at com.fiberhome.asteriadb.common.current.AsThreadPoolExecutor.execute at io.grpc.internal.SerializingExecutor.execute at io.grpc.internal.ServerImpl$JumpToApplicationThreadServerStreamListener at io.grpc.internal.AbstractServerStream$TransportState.closeListener at io.grpc.internal.AbstractServerStream$TransportState.complete at io.grpc.nettyServerStream$TransportState.complete … …

Read more comments on GitHub >

github_iconTop Results From Across the Web

gRPC exception list - Google Groups
StatusRuntimeException : INTERNAL: HTTP/2 error code: INTERNAL_ERROR Received Goaway. Above exception doesn't give clarity about what could have happened ...
Read more >
io.grpc.StatusRuntimeException: INTERNAL: HTTP/2 error ...
I get the following error when trying to connect to mongodb. I am running a spring boot application on java 1.8.
Read more >
GRPC Core: Status codes and their use in gRPC
Code Number Description OK 0 Not an error; returned on success. FAILED_PRECONDITION 9 OUT_OF_RANGE 11
Read more >
Sandbox header size grpc error - Questions - Daml Forum
WARNING: Stream Error io.netty.handler.codec.http2. ... StatusRuntimeException: INTERNAL: HTTP/2 error code: PROTOCOL_ERROR Received Rst ...
Read more >
Exception in Graph java client while connecting to Remote ...
StatusRuntimeException : INTERNAL: http2 exception ... asRuntimeException(Status.java:526)** ... Caused by: io.netty.handler.codec.http2.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found