-
Notifications
You must be signed in to change notification settings - Fork 10
[gRPC/cache] Received message larger than max #53
Comments
For GitHub PRs its probably good advice to have a reasonable upper limit, since anybody can make PR's to GitHub, this is easy to use in a malicious way or also to just by accident cause harm. |
Shouldn't the dispatcher be able to drop a large message, and carry on? |
Of course, the error must be caught and handled gracefully. The question is how large a message can be. There's a cap on the gRPC side, obviously, but we still need to control the max size for our needs. E.g. 15 MB is easy with CJK-Families. I'll catch and handle the error today (printing to stderr, so we get a report in the management console and don't forget about it). Later, it's probably necessary to implement chunked messages for the cache and still maintain an upper limit. |
Actually, looking at that log now, and at the code, the exception is properly handled, and we also have ~40 reports in http://35.192.167.39/dashboard for the GitHub-GoogleFonts/pulls Source. We also have 48 reported errors, so that must be the amount of skipped tests (some from other sources as well!). |
Below is the list of 29 families in master exceeding the max of Our now biggest font has I'll try for now to put the message limit at 80 MiB.
I won't remove the error that is emitted to the logs and I don't have the time now to implement a chunked stream of data (we probably don't need it, see the comment):
|
Amazing!
|
The reason is a message size limitation on the gRPC side. We can work around this.
Also: it would be good to compress the messages that are on the wire and put into the cache.
One workaround could be to find the right gRPC setting to allow for bigger messages.
Another one would be to send big messages in smaller chunks, gRPC already has a streaming interface, so we can use that.
Maybe helpful:
The text was updated successfully, but these errors were encountered: