I added a mode where one can launch a child process without the built-in pumping support, making it trivial to read until EOF in the distributed environments.
This concludes the fix.
java.lang.NegativeArraySizeException
at hudson.remoting.ProxyOutputStream$Chunk.<init>(ProxyOutputStream.java:175)
at hudson.remoting.ProxyOutputStream._write(ProxyOutputStream.java:123)
at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:103)
Note that the above description is incorrect as to what the merge was about.
It is the message that I intended to make. It appears that I accidentaly merged multiple fixes waiting to be reviewed on my private fork.
This reverts commit dce0d2aff0, reversing
changes made to 63f67f30bd.
The problem is that the sending side has no way of knowing when the
receiving side has hung up. So when the receiving side hangs up we should
be able to read till the stream runs out, then close. Not the optimal
solution, but one that should work for now.
http://issues.jenkins-ci.org/browse/JENKINS-8592
First pass at making sure we don't stop copying when the reader reads 0 characters.
I will now also review the callers for our internal code, and check if we can use IOUtils methods instead.
https://www.dev.java.net/svn/hudson/branches/rc
........
r35444 | kohsuke | 2010-10-01 13:44:56 -0700 (Fri, 01 Oct 2010) | 1 line
[FIXED HUDSON-7546] Fixed a possible AbstractMethodError in 1.379
........
r35445 | kohsuke | 2010-10-01 14:04:58 -0700 (Fri, 01 Oct 2010) | 1 line
[FIXED HUDSON-4229] Supported failsafe reports for the Maven2 job type.
........
r35457 | kohsuke | 2010-10-02 10:04:35 -0700 (Sat, 02 Oct 2010) | 1 line
added additional code to assist trouble-shooting.
........
r35458 | kohsuke | 2010-10-02 10:09:44 -0700 (Sat, 02 Oct 2010) | 1 line
performance optimization wrt the usage of buffer
........
r35460 | kohsuke | 2010-10-02 10:19:25 -0700 (Sat, 02 Oct 2010) | 1 line
[FIXED HUDSON-5977 HUDSON-7572] the incorrect use of WeakHashMap resulted in two instances of PipeWindows for the same OID.
........
r35461 | kohsuke | 2010-10-02 10:30:21 -0700 (Sat, 02 Oct 2010) | 1 line
debug code accidentally crept in.
........
r35463 | kohsuke | 2010-10-02 11:21:55 -0700 (Sat, 02 Oct 2010) | 1 line
[maven-release-plugin] prepare release hudson-1_379
........
r35465 | kohsuke | 2010-10-02 11:22:14 -0700 (Sat, 02 Oct 2010) | 1 line
[maven-release-plugin] prepare for next development iteration
........
r35469 | kohsuke | 2010-10-02 12:26:53 -0700 (Sat, 02 Oct 2010) | 1 line
updated changelog as a part of the release
........
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35530 71c3de6d-444a-0410-be80-ed276b4c234a
at java.lang.Object.wait(Native Method)
- waiting on [B@102f72d
at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:147)
at hudson.remoting.FastPipedOutputStream.write(FastPipedOutputStream.java:122)
at hudson.remoting.ProxyOutputStream$Chunk.execute(ProxyOutputStream.java:164)
at hudson.remoting.Channel$ReaderThread.run(Channel.java:877)
Looking at the code, I see that the current write method keeps a strong reference to the sink, effectively nullifying the weak reference check. So fixing that bug.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34825 71c3de6d-444a-0410-be80-ed276b4c234a