buchgr / bazel-remote

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

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

Closed Andrius-B closed 3 months ago

Andrius-B commented 5 months 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

mostynb commented 3 months ago

Thanks for the contribution- this has landed on the master branch.