disconnect from a slave does not kill worker threads
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Jenkins Gearman Plugin |
Fix Released
|
High
|
Khai Do |
Bug Description
Not all executor workers threads get killed when disconnecting a slave. It looks like only the 1st is stopped.
steps to repro:
1. setup jenkins with a slave that has more than 1 executor on it
2. install jenkins gearman-plugin
3. enable the gearman plugin from jenkins global config page
4. check the workers on the gearman server (i.e. gearadmin --workers)
I have master node with one executor and a slave with 2 executors, so mine looks like this..
36 127.0.0.1 oneiric-
37 127.0.0.1 oneiric-
33 127.0.0.1 EliteBook.
34 127.0.0.1 EliteBook.
5. On jenkins click the link to 'Disconnect' the slave. check the workers on the gearman server again. Both executor workers should have stopped.
Expected should like this..
33 127.0.0.1 EliteBook.
34 127.0.0.1 EliteBook.
However the actual result looks like this..
37 127.0.0.1 oneiric-
33 127.0.0.1 EliteBook.
34 127.0.0.1 EliteBook.
Changed in gearman-plugin: | |
status: | In Progress → Fix Committed |
Changed in gearman-plugin: | |
status: | Fix Committed → Fix Released |
I was able to repro after the commit for adding a custom worker class (MyGearmanWorke rImpl). The commit is 20844c7e46504ad bfa81fdc2bed538 b353068b46