ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41603] - external jython classes are not thread-safe
Date Wed, 14 Feb 2007 15:14:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41603>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=41603





------- Additional Comments From stevel@apache.org  2007-02-14 07:14 -------
I dont know what we will do about this. I believe we could (a) link it to the
other bug about script thread safety and (b) check how other script langauges
behave.

What I will do right now is highlight that parallel is an exceedingly dangerous
thing to do. the only 95% safe activity you can do in it is run external stuff
using <parallel> or <exec>. It is not meant to be a way to speed up ant.

there is a small hint of this in the docs, but I have added a big warning to the
front that states more clearly, "play games with parallel and you get to debug
the thread safety of the classes you use"

<p><b>Warning:</b> While the Ant core is believed to be thread safe, no
such 
    guarantees are made about tasks, which are not tested for thread safety during
    ant's test process. 
    Third party tasks may or may not be thread safe, and some of Ant's core
tasks, such as
    &lt;javac&gt; are definitely not re-entrant. This is because they use
libraries that
    are not designed to be used in a multithreaded environment.
</p>
<p>
    The primary use case for &lt;parallel&gt; is to run external programs
    such as an application server, and the JUnit or TestNG test suites at the
    same time. Anyone trying to run large Ant task sequences in parallel, such
    as javadoc and javac at the same time, is implicitly taking on the task
    of identifying and fixing all concurrency bugs in Ant and its tasks.
</p>

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message