[ 
https://issues.apache.org/jira/browse/KAFKA-3167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15317422#comment-15317422
 ] 

Ismael Juma commented on KAFKA-3167:
------------------------------------

I changed this so that we do the following before gradle is executed:

{code}
# Delete gradle cache to workaround cache corruption bugs, see KAFKA-3167
rm -rf ${WORKSPACE}/.gradle
{code}

The corrupted cache seems to be in `.gradle`, so the previous attempt wasn't 
helping. The Gradle cache was not corrupted after the change so far (unless 
noted, the tests passed):

https://builds.apache.org/job/kafka-trunk-jdk7/1348/
https://builds.apache.org/job/kafka-trunk-jdk8/683/
https://builds.apache.org/job/kafka-0.10.0-jdk7/120/ (failed due to an 
unrelated transient failure)
https://builds.apache.org/job/kafka_0.9.0_jdk7/133/
https://builds.apache.org/job/kafka-trunk-git-pr-jdk7/4140/

> Use local to the workspace Gradle cache and recreate it on every build
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-3167
>                 URL: https://issues.apache.org/jira/browse/KAFKA-3167
>             Project: Kafka
>          Issue Type: Improvement
>          Components: build
>            Reporter: Ismael Juma
>            Assignee: Ismael Juma
>
> Kafka builds often fail with "Could not add entry 
> '/home/jenkins/.gradle/caches/modules-2/files-2.1/net.jpountz.lz4/lz4/1.3.0/c708bb2590c0652a642236ef45d9f99ff842a2ce/lz4-1.3.0.jar'
>  to cache fileHashes.bin"
> I filed INFRA-11083 and Andrew Bayer suggested:
> "Can you change your builds to use a local-to-the-workspace cache and then 
> nuke it/recreate it on every build?"
> This issue is about changing the Jenkins config for one of the trunk builds 
> to do the above to see if it helps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to