Skip to content

Commit 62a2c1a

Browse files
committed
Remove the jdk directory to save space on bwc tests (#41743)
* Revert "Revert "Clean up clusters between tests (#41187)"" This reverts commit 9efc853. * Remove the jdk directory to save space on bwc tests This PR adresses the same concern as #41187 in a different way. It removes only the JDK from the distribution once the cluster stops, so we keep the same disk space requirements as before adding the JDK. This is still a temporary measure, testclusters already deals with this by doing the equivalent of `cp -l` instead of an actual copy.
1 parent f6bcd70 commit 62a2c1a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -884,6 +884,8 @@ class ClusterFormationTasks {
884884
}
885885
doLast {
886886
project.delete(node.pidFile)
887+
// Large tests can exhaust disk space, clean up jdk from the distribution to save some space
888+
project.delete(new File(node.homeDir, "jdk"))
887889
}
888890
}
889891
}

0 commit comments

Comments
 (0)