Werk #22687: Bazel: recover from corrupted cache files
| Component | Checks & agents | ||||
| Title | Bazel: recover from corrupted cache files | ||||
| Date | Oct 9, 2026 | ||||
| Level | Trivial Change | ||||
| Class | Bug Fix | ||||
| Compatibility | Compatible - no manual interaction needed | ||||
| Checkmk versions & editions |
|
Previously, the Bazel cache special agent crashed on every run if its version cache file was corrupted, typically with a ValidationError.
The agent kept crashing until someone deleted the broken file by hand. Now the agent throws away a corrupted version cache, fetches the version information again and overwrites the file, so it recovers on its own. When you run the special agent manually, a warning is now emitted when the cache is invalid.
Most corrupted cache files were due to two agents for the same host overlapping causing a race condition. Werk #22278 addresses that issue.