Commit Graph
326 Commits
Author SHA1 Message Date
Kohsuke Kawaguchi 9cdd9cc0c5 [FIXED JENKINS-9189] fixed the race condition between I/O operation and the return of the Channel.call() execution in more fundamental way. 2011-06-09 11:03:38 -07:00
Kohsuke Kawaguchi 2ca3836deb RemoteClassLoader is not honoring the classloader that's passed to the Channel contructor 2011-06-03 15:34:03 +01:00
Kohsuke Kawaguchi 11b96b748c merged back the RC branch 2011-05-16 10:12:43 -07:00
Kohsuke Kawaguchi e9568c5af6 keep track of commands sent and received to aid debugging 2011-05-11 21:39:41 -07:00
Kohsuke Kawaguchi 74e35d8b6b [FIXED JENKINS-9017]
Fixed incorrect de-allocation of a classloader from the exported object
table.

The fix is a defense-in-depth; it prevents classloaders referenced in
the object graph from doubly released, then we also make it impossible
for bugs like this to deallocate the key classloader.
2011-05-10 18:34:44 -07:00
Kohsuke Kawaguchi ac288991b6 doc improvements 2011-05-10 18:07:30 -07:00
Kohsuke Kawaguchi 012f447bc3 improve the error diagnostics 2011-05-10 16:57:42 -07:00
Jesse Farinacci 3803a3e382 [FIXED JENKINS-9521] exploit commons-codec for Base64 encoding rather than proprietary sun.misc.BASE64Encoder 2011-04-26 11:44:45 -04:00
Vojtech Juranek 7c5da9b3c1 Remove potential infinite loop (related to JENKINS-5922) + formating of previous patch 2011-04-22 19:29:07 +02:00
Vojtech Juranek 136ab1cb4b Fix for JENKINS-5922 - workaround for CertificateReaderInputStream 2011-04-21 14:14:13 +02:00
redsolo d1f862d562 Updated GIMP file with new logotype and exported it as a PNG image 2011-04-19 01:38:52 +04:00
Kohsuke Kawaguchi 2b9b4d0322 Merge commit '39eb87c7de5742f586091be6e19e951b62dd2bd0' 2011-03-28 14:13:18 -07:00
Kohsuke Kawaguchi fbfdaef432 made to work with JBoss6 2011-03-27 18:28:32 -07:00
Kohsuke Kawaguchi b22a064dae previous fix was incomplete 2011-03-24 23:43:23 -07:00
Kohsuke Kawaguchi 5fdb33daa1 allowed classloader to be specified, to improve the flexibility of the types that can be used for getRemoteProperty() 2011-03-24 23:28:48 -07:00
Nathan Parry 18327e9de6 [FIXED JENKINS-8990] Configurable ping interval
This lets you configure the ping interval for slaves via a
system property. (hudson.slaves.ChannelPinger.pingInterval)

The default ping interval has been lowered from 10 to 5 minutes.

It also moves the ping setup logic into a ComputerListener
(out of the JNLP slave Engine class). As a side effect, all
slaves will now have a ping instead of just JNLP slaves.
2011-03-23 12:06:32 -07:00
Kohsuke Kawaguchi 2aad40296f [FIXED JENKINS-9050] Improved the error diagnostics when a remote method call fails to deserialize. 2011-03-18 22:51:19 -07:00
Kohsuke Kawaguchi 9e788b48c8 doc improvement 2011-03-17 23:11:58 -07:00
Kohsuke Kawaguchi c3fc09939c [FIXED JENKINS-7871] Fixed a race condition in FilePath.copyTo
that results in missing tail bits when the master is heavily loaded.
2011-03-14 13:31:58 -07:00
Olivier Lamy abcb3fd8b5 remove unused import 2011-03-11 22:18:29 +01:00
Kohsuke Kawaguchi f9f030db8f thread dump now reports all the threads from all the slaves, not just
the master.
2011-02-28 22:49:29 -08:00
Brian Atkinson 4c10efe1a9 Merge branch 'JENKINS-8592' 2011-02-16 23:17:59 -06:00
Brian Atkinson be5438b3b3 Log out exceptions that happen in copy threads.
This could be useful in trying to track down when things break in special
ways.
2011-02-16 19:48:45 -06:00
Brian Atkinson 1917efdc33 Clean up unused imports 2011-02-16 19:48:44 -06:00
Kohsuke Kawaguchi 96dd84b5d0 [FIXED JENKINS-7809] expose child process stdout as InputStream.
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.
2011-02-16 08:28:00 -08:00
Kohsuke Kawaguchi 3a3690b281 [FIXED JENKINS-7809] fixed a race condition in obtaining the tail of the output from remote process. 2011-02-14 17:13:24 -08:00
Kohsuke Kawaguchi 7b40e2e091 being more defensive, in seeing JENKINS-7809 and the following stack trace:
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)
2011-02-14 10:18:22 -08:00
Kohsuke Kawaguchi 8e6929f108 Hudson to Jenkins 2011-02-08 01:37:46 -08:00
Jerome Lacoste 7e3bc36b39 Revert "merge changelog.html fixes from kk"
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.
2011-02-07 14:50:17 +01:00
Brian Atkinson 1d1c18890f Fix a conditional bug: if the remote end supports pipe throttling, make
sure to use the right type of pipe window.
2011-02-05 13:30:10 -06:00
Jerome Lacoste 58166dfb2b Merge remote branch 'upstream/master'
Reapplied 329a020188

Conflicts:
	core/src/main/java/hudson/widgets/HistoryWidget.java
2011-02-05 07:38:58 +01:00
Kohsuke Kawaguchi 758aedf885 Merge commit 'c628bdd32be8fdf0f663b373836585498e1ecaa1'
* commit 'c628bdd32be8fdf0f663b373836585498e1ecaa1':
  First pass at a fix for JENKINS-8592.
2011-02-04 20:07:39 -08:00
Kohsuke Kawaguchi 73a8007d43 [JENKINS-8592] let the writer end know if the reader end of the pipe
failed.
2011-02-04 20:06:53 -08:00
Brian Atkinson c628bdd32b First pass at a fix for JENKINS-8592.
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
2011-02-04 18:46:04 -06:00
Jerome Lacoste 020a4ee92a JENKINS-8686 IO stream copies are not done properly.
Some more work:
* reviewed some callers
* took note that some classes have been moved into stapler
* used IOUtil.closeQuietly() in a few places
2011-02-04 15:34:26 +01:00
Jerome Lacoste bfbaf2c9d9 JENKINS-8686 IO stream copies are not done properly.
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.
2011-02-04 15:34:07 +01:00
Jerome Lacoste a41c87192d JENKINS-7836 tentative fix for the copy from slave to master issues. The problem looks similar to JENKINS-7745, so we might as well synchronized the ProxyInputStream. 2011-02-03 23:04:36 +01:00
Jerome Lacoste 31b8361d31 JENKINS-7836 tentative fix for the copy from slave to master issues. The problem looks similar to JENKINS-7745, so we might as well synchronized the ProxyInputStream. 2011-02-03 14:07:18 +01:00
Kohsuke Kawaguchi 5c91eb1fe5 ProxyOutputStream was not thread safe even though it often gets used by multiple threads, for example when you launch a remote process with the same stdout/stderr. 2011-02-02 09:41:40 -08:00
Kohsuke Kawaguchi 3a1447ea9a Updating the URL. 2011-01-30 23:44:52 -08:00
Kohsuke Kawaguchi 68ed742227 [FIXED HUDSON-5055] allow the same JNLP slave to reconnect without getting rejected. 2011-01-24 13:40:59 -08:00
Seiji Sogabe df9db0af0e Removed unused import. 2010-12-29 21:33:59 +09:00
Kohsuke Kawaguchi 7984e31026 [FIXED HUDSON-8060] Slaves launched by JNLP fail to reprot their version numbers. 2010-12-02 11:20:46 -05:00
Kohsuke Kawaguchi 768abac9b1 merged 'ready-to-merge' from huybrechts 2010-11-25 08:51:56 -08:00
kohsuke 9ce2828105 added a test in an attempt to reproduce / pin-point HUDSON-7809 but this was not it.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@37070 71c3de6d-444a-0410-be80-ed276b4c234a
2010-11-20 02:32:24 +00:00
kohsuke f8caddbebf improved the diagnostics
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36964 71c3de6d-444a-0410-be80-ed276b4c234a
2010-11-15 23:36:18 +00:00
sogabe 0404b5cfd7 Fixed unused import.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36816 71c3de6d-444a-0410-be80-ed276b4c234a
2010-11-10 14:33:10 +00:00
kohsuke 2eebfb9bc7 [FIXED HUDSON-7745] suppressing the assertion so that the processing won't die.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@36558 71c3de6d-444a-0410-be80-ed276b4c234a
2010-11-01 22:22:34 +00:00
Tom Huybrechts 97ba4831b6 add node name to logs 2010-10-16 22:05:45 +02:00
kohsuke 7ae17dfa5d rather, according to http://d.hatena.ne.jp/miau/20101002/1286014365 , the new value is since 1.378, so I should probably use the older value effective before 1.378 for maximum compatibility.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35609 71c3de6d-444a-0410-be80-ed276b4c234a
2010-10-07 18:22:14 +00:00