-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"StatusRuntimeException: INTERNAL: HTTP/2 error code: INTERNAL_ERROR" ,"StatusRuntimeException:UNKNOWN" #2901
Comments
RST STREAM only happens on protocol level errors. What version is the gRPC server running? |
Are the clients and servers both using grpc-java? RST_STREAM with CANCEL happens in some other common cases. RST_STREAM with INTERNAL_ERROR can occur in some error cases. I'd expect a protocol error to have error code PROTOCOL_ERROR. For the UNKNOWN, I'd expect a "caused by" exception for it. Was there? If not, then that came from the server. I'd expect the server threw an exception and it should be logged. @kaiyangzhang, did you check the server logs at all? I'd expect that they logged something when this happened. |
and
I believe this implies it is both Java client and server. |
|
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]] |
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; |
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?
my benchmark is a distributed program: one client to three servers.
client tps: 150k+ /s, each server receive message : 50k+ /s
question:
The text was updated successfully, but these errors were encountered: