buchgr / bazel-remote

A remote cache for Bazel
https://bazel.build
Apache License 2.0
576 stars 150 forks source link

More informative error message in case of corrupted blob headers #759

Open Andrius-B opened 1 month ago

Andrius-B commented 1 month ago

I would love to get a more informative error message here. I keep seeing this happen but since the error does not contain the hash of the CAS item being fetched, it's very tricky to figure out what goes wrong from the access logs. Specifically the error I'm seeing is this:

Warning: expected item to be on disk, but something happened: offset table values should increase: 0 -> 29

I'm hoping that with a hash to reference in the logs, I can find out what corrupts the headers