gearman-plugin/src/main/java/hudson/plugins/gearman
James E. Blair 2cb540bf51 Use more fine-grained synchronization in GearmanProxy
This undoes some of the previous change.  In particular, calling
something that could affect a NodeAvailabilityMonitor's lock
(eg in canTake or the init methods in createExecutorWorkersOnNode)
can deadlock on trying to obtain the Queue lock while holding the
GearmanProxy lock.

Instead, lock on just the handle lists where necessary, and try
to do serious work outside of that lock.

Change-Id: I4c1ed6c7a4f5586c1034651a649bbbd420eacdd7
2013-08-14 14:50:14 -07:00
..
example add example java client 2013-03-19 10:56:41 -07:00
AbstractWorkerThread.java Use more fine-grained synchronization in GearmanProxy 2013-08-14 14:50:14 -07:00
AvailabilityMonitor.java Don't catch InterruptedException in the node monitor. 2013-06-14 15:24:12 -07:00
ComputerListenerImpl.java Rework starting/stopping executors 2013-08-13 11:31:50 -07:00
Constants.java always run management worker 2013-06-11 15:18:04 -07:00
CustomGearmanFunctionFactory.java Rework starting/stopping executors 2013-08-13 11:31:50 -07:00
ExecutorWorkerThread.java Use more fine-grained synchronization in GearmanProxy 2013-08-14 14:50:14 -07:00
GearmanPluginConfig.java fix for bug 1162887 2013-05-01 10:20:45 -07:00
GearmanPluginUtil.java Rework starting/stopping executors 2013-08-13 11:31:50 -07:00
GearmanProxy.java Use more fine-grained synchronization in GearmanProxy 2013-08-14 14:50:14 -07:00
ManagementWorkerThread.java Use more fine-grained synchronization in GearmanProxy 2013-08-14 14:50:14 -07:00
MyGearmanWorkerImpl.java Add OFFLINE_NODE_WHEN_COMPLETE option 2013-08-06 11:09:14 -07:00
NodeAssignmentAction.java Add comments, decouple build actions, and cancel jobs. 2013-02-08 15:56:31 -08:00
NodeAvailabilityMonitor.java Rework starting/stopping executors 2013-08-13 11:31:50 -07:00
NodeParametersAction.java Add comments, decouple build actions, and cancel jobs. 2013-02-08 15:56:31 -08:00
NoopAvailabilityMonitor.java Handle mutex scheduling from Gearman or Jenkins. 2013-06-13 12:42:51 -07:00
QueueTaskDispatcherImpl.java Handle mutex scheduling from Gearman or Jenkins. 2013-06-13 12:42:51 -07:00
RunListenerImpl.java Handle mutex scheduling from Gearman or Jenkins. 2013-06-13 12:42:51 -07:00
SaveableListenerImpl.java Rework starting/stopping executors 2013-08-13 11:31:50 -07:00
SetDescriptionWorker.java Fix build description permission error. 2013-06-07 10:53:43 -07:00
StartJobWorker.java Rework starting/stopping executors 2013-08-13 11:31:50 -07:00
StopJobWorker.java Update zuul-gearman protocol. 2013-06-06 15:40:01 -07:00