The problem may be that if there are open file handles then these folders
can't be removed by the JVM that created them until the process dies.

I see a few solutions.

1) I assume you're running ant clean in jenkins before any tests commence;
so the buildup of stale files should be at most for a single run.

2) you can 'terminate tests early' instead of trying to run all tests (and
possibly have multiple failures, each leaving a trail of poop behind. This
can be done by:

# Repeats N times but skips any tests after the first failure or M
# initial failures.
ant test -Dtests.iters=N -Dtests.failfast=yes -Dtestcase=...
ant test -Dtests.iters=N -Dtests.maxfailures=M -Dtestcase=...

So if you add -Dtests.maxfailures=1 then only a single Solr test would
actually leave those temporary files. Would this help?

Dawid

Reply via email to