Closed cdgjzzy closed 4 months ago
Currently the only idea I have why this might happen is a buffer reuse.
Other than that, this does appear to be an issue with grpc-spring but grpc java itself. Please report this upstream and maybe also iclude the protobuf type definition for the affected type. Please link the upstream issue here in case anybody encounters a similar issue in the future.
The gRPC-Java solution is to upgrade the version; they have indicated that the issue has been fixed in the new version. grpc-java #11201
Thanks for the update
The bug
When I use gRPC streaming responses, I handle it like this:
This method gets triggered about 1500 times per second. Under such concurrent circumstances, there are issues with gRPC failing to send messages.
Stacktrace and logs
The application's environment
Additional context
If I control the sending frequency with a queue, then this exception does not occur.