Commit Graph
319 Commits
Author SHA1 Message Date
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
kohsuke 465a6f99fc to remain compatible with the current version, I actually need to use the computed value, not the usual "1L"
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35608 71c3de6d-444a-0410-be80-ed276b4c234a
2010-10-07 18:20:26 +00:00
kohsuke b7c9af803f make sure the pipe writer always get terminated.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35607 71c3de6d-444a-0410-be80-ed276b4c234a
2010-10-07 18:08:53 +00:00
kohsuke 70ba4fcadf missing serialVersionUID resulting in a problem reported in http://d.hatena.ne.jp/miau/20101002/1286014365
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35599 71c3de6d-444a-0410-be80-ed276b4c234a
2010-10-07 06:04:13 +00:00
kohsuke 09ffabb5dd [HUDSON-7572] debug logging code crept in. Meant to be FINER, not INFO.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@35531 71c3de6d-444a-0410-be80-ed276b4c234a
2010-10-05 21:00:04 +00:00
kohsuke f1f34b8180 Merged revisions 35444-35445,35457-35458,35460-35461,35463,35465,35469 via svnmerge from
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
2010-10-05 20:52:34 +00:00
kohsuke 594c5ef124 improving the diagnosability by setting the thread name.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34839 71c3de6d-444a-0410-be80-ed276b4c234a
2010-09-15 17:57:39 +00:00
kohsuke 5f51597ad4 [FIXED HUDSON-5977] implemented a windowing mechanism to throttle the pipe usage, and the pipe operation no longer interferes with the main channel reader thread.
git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@34838 71c3de6d-444a-0410-be80-ed276b4c234a
2010-09-15 17:57:31 +00:00