lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dawid Weiss <>
Subject Re: improving unique work.dir per JVM?
Date Sun, 23 Dec 2012 09:58:18 GMT
bq. In my opinion, the better way would be to “lock” the whole
checkout and prevent parallel ANT runs.

I share Uwe's viewpoint here.

bq. The sysprop is only set by the ANT build from the
ANT script, the junit4 task does not modify the property at all – as
Eclipse does not run the ant script, you have to configure yourself.

We could probably set this property somewhere very early in
LuceneTestCase's filter chain. But this would then limit the
flexibility of tuning things from the outside (from ant, etc.). Don't
know if it's a good idea.

Anyway, Shai, if it's your own checkout (or project) and you
absolutely have to have parallel tests running on the same structure
(I assume only tests will fork, nothing else) then you could set up a
random cwd for subprocesses from ant --

generate a temporary directory in place of that property and reuse it
for 'dir' attribute of junit4. This shouldn't clash with other JVMs
(but who knows).

Note that the J0/J1 and other working directories are specified using
'dir' attribute of junit4 task:

The 'isolateWorkingDirectories' attribute was added specifically to
avoid multiple JVMs conflicts but it is still assumed that the 'dir'
attribute is unique to the current build and isolated from any other

The tempdir, on the other hand, can be pointed to any folder,
regardless of the number of concurrent processes because files in
there will not conflict with each other (they are timestamp prefixed).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message