Open avdv opened 8 months ago
Adding emphasis on the difference in numbers, since it's subtle and may be hard to spot:
The bazel-remote-worker reports a max batch size of 4MiB (
4*1024*1024
) in its capabilities. As a workaround we have set the max batch size to 4MB (4*1000*1000
) for the bazel-remote-worker.
We are using the bazel-remote-worker locally for isolation.
For a target we see this error reproducibly:
I found this post, that pin pointed the problem. This error is actually thrown by tonic, here.
The bazel-remote-worker reports a max batch size of 4MiB in its capabilities. If a request's batch size is getting close to this limit, the server response (including headers and maybe compression meta data) might exceed the 4MiB default transport message size enforced by tonic and cause this error.
As a workaround we have set the max batch size to 4MB for the bazel-remote-worker.
The max size enforced by tonic is also configurable and probably should be set to a value larger than the max batch size reported by the server.