Affects Version/s: 0.9
Fix Version/s: 1.0-milestone-5
I'm occassionally getting errors of this kind when building:
org.gradle.api.UncheckedIOException: Could not remove entry '/var/tmp/build/foo/ubuntu-10.04-64/foo/dependency-cache' from cache '/ext/home/build/.gradle/caches/0.9-preview-3/outputFileStates/cache.bin'.
Caused by: org.gradle.cache.btree.CorruptedCacheException: Corrupted IndexBlock 649964 found in cache '/ext/home/build/.gradle/caches/0.9-preview-3/outputFileStates/cache.bin'.
Sometimes its an issue with outputFileStates/cache.bin and other times its an issue with fileHashes/cache.bin.
A little background: we have an automated build system where a "build" user checks if there have been recent svn checkins into a project. If so, it checks out the code and builds it to a central repository. This can happen for many projects at the same time and so multiple gradle processes would access the gradle caches simultaneously.
This was with 0.9-preview-3