You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a simple Spring application that sends SQL statements to an ImmuDB instance running inside a Docker container.
Up to five such statements can be sent successfully, the sixth however causes the following exception:
io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 9502720
This is caused by a call to ImmuClient::commitTransaction. It seems like those multiple calls add up somehow. When I, instead of an SQL statement, just send a key-value pair I am able to send a few more requests but it ultimately crashes anyways at a certain point.
To make sure that this is not coding issue on my side, here is the method body that handles the request and makes use of the ImmuClient instance:
Do you have a clue what is happening here? Might this be a bug with immudb4j or is it a layer 8 problem?
I now did some more testing and tested the same piece of code as above in a plain Java project (no Spring) and I could not reproduce the exception.
Also, when writing key-value values instead of SQL statements to ImmuDB it sometimes crashes with a different exception: io.netty.handler.codec.http2.Http2Exception: Incomplete header block fragment.
Another thing: When I shut down the ImmuClient and reinitialise it with every request to ImmuDB the exceptions do not happen.
So as it seems these exceptions only appear when Spring is in use and the ImmuClient is the same instance inbetween multiple requests.
The text was updated successfully, but these errors were encountered:
After some further testing, it might be that this issue arises due to some shared dependency of Spring Boot and immudb4j. The crash does not happen when using Spring Boot version 3.3.0, only with the versions 3.3.1, 3.3.2 and 3.3.3.
Equiphract
changed the title
"RESOURCE_EXHAUSTED: gRPC message exceeds maximum size" on too many consecutive requests
"RESOURCE_EXHAUSTED: gRPC message exceeds maximum size" on too many consecutive requests with Spring
Sep 19, 2024
I have a simple Spring application that sends SQL statements to an ImmuDB instance running inside a Docker container.
Up to five such statements can be sent successfully, the sixth however causes the following exception:
io.grpc.StatusRuntimeException: RESOURCE_EXHAUSTED: gRPC message exceeds maximum size 4194304: 9502720
This is caused by a call to
ImmuClient::commitTransaction
. It seems like those multiple calls add up somehow. When I, instead of an SQL statement, just send a key-value pair I am able to send a few more requests but it ultimately crashes anyways at a certain point.To make sure that this is not coding issue on my side, here is the method body that handles the request and makes use of the
ImmuClient
instance:Here is the instantiation of the
ImmuClient
object that is used in the above code extract asclient
:Do you have a clue what is happening here? Might this be a bug with immudb4j or is it a layer 8 problem?
I now did some more testing and tested the same piece of code as above in a plain Java project (no Spring) and I could not reproduce the exception.
Also, when writing key-value values instead of SQL statements to ImmuDB it sometimes crashes with a different exception:
io.netty.handler.codec.http2.Http2Exception: Incomplete header block fragment.
Another thing: When I shut down the
ImmuClient
and reinitialise it with every request to ImmuDB the exceptions do not happen.So as it seems these exceptions only appear when Spring is in use and the
ImmuClient
is the same instance inbetween multiple requests.The text was updated successfully, but these errors were encountered: