-
Bug
-
Resolution: Fixed
-
Minor
The slave.jar should setup an UncaughtExceptionHandler to make it easier to diagnose things like NoClassDefFoundErrors which are impossible to debug once the original stack trace is lost.
Plan of action:
Remoting
Threads | Expected Behavior |
---|---|
SynchronousCommandTransport.ReaderThread | Log, terminate channel (see current generic error handling here) |
PortForwarder | Log, call close() |
CopyThread | Log |
Engine | Log, kill remoting |
PingThread | Log, call onDead(Throwable) |
Core
Threads | Expected Behavior |
---|---|
PlainCLIProtocol.EitherSide.Reader | |
TaskThread | |
ViewJob.ReloadThread | |
Executor | |
Proc.LocalProc.StdinCopyThread | |
AbstractNodeMonitorDescriptor.Record | |
TcpSlaveAgentListener | Log, call shutdown() |
TcpSlaveAgentListener.ConnectionHandler | Log, close socket |
UDPBroadcastThread | |
StreamCopyThread | |
AsynchronousAdministrativeMonitor.FixThread |
- relates to
-
JENKINS-33395 Jenkins should install a default UncaughtExceptionHander
-
- Resolved
-
-
JENKINS-28499 tcpSlaveAgentListener not found
-
- Reopened
-
-
JENKINS-49415 Install additional UncaughtExceptionHandler in Engine
-
- Resolved
-
- links to
(1 links to)
Code changed in jenkins
User: Rebecca Ysteboe
Path:
core/src/main/java/hudson/TcpSlaveAgentListener.java
http://jenkins-ci.org/commit/jenkins/50bec3f68426b97344e1b87e4ef9a930f29ec778
Log:
JENKINS-38711Add UncaughtExceptionHandler to remoting related threads (#2986)JENKINS-38711Add UncaughtExceptionHandler to remoting related threadsJENKINS-38711Restart listener thread if it failsJENKINS-38711Reschedule the thread on a delayJENKINS-38711Allow the listener to actually be restartedJENKINS-38711Minor updates based on feedback