Clean up clusters between tests (#41187)

This PR adds additional cleanup when stopping the node.
The data dir is excepted because it gets reused in some tests.
Without this cleanup the number of working dir copies could grew to
exhaust all available disk space.
This commit is contained in:
Alpar Torok 2019-04-18 08:51:10 +03:00
parent c77e10b16b
commit 44a0c468cf
1 changed files with 2 additions and 0 deletions

View File

@ -964,6 +964,8 @@ class ClusterFormationTasks {
}
doLast {
project.delete(node.pidFile)
// Large tests can exhaust disk space, clean up on stop, but leave the data dir as some tests reuse it
project.delete(project.fileTree(node.baseDir).minus(project.fileTree(node.dataDir)))
}
}
}