function registration is incorrect after gearman server restart
Bug #1162977 reported by
James E. Blair
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Jenkins Gearman Plugin |
Fix Released
|
High
|
James E. Blair |
Bug Description
Steps to reproduce:
1) Start gearmand
2) Enable gearman plugin in jenkins
3) gearadmin --workers shows correct function registration
4) Disable gearman plugin
5) gearadmin --workers shows correct function registration (no functions registered)
6) Enable gearman plugin
7) gearadmin --workers shows correct function registration
8) Stop gearmand
9) Start gearmand
10) gearadmin --workers shows correct function registration
11) Disable gearman plugin
12) gearadmin --workers shows INCORRECT function registration (functions still registered)
13) Enable gearman plugin; config page hangs on saving
Changed in gearman-plugin: | |
assignee: | nobody → Khai Do (zaro0508) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in gearman-plugin: | |
status: | In Progress → Fix Committed |
Changed in gearman-plugin: | |
status: | Fix Committed → Triaged |
Changed in gearman-plugin: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
I'm seeing something a little different between steps 9 & 10. The functions are not exactly correct.
functions from step #7: t:air 668621- exec-0 : build:peach build:peach:linux build:lemon build:lemon: linux&& gcc build:kiwi:ubuntu build:kiwi build:kiwi:centos build:guava build:apple build:apple: oneiric- 668621 668665- exec-0 : build:tangerine :torrent build:tangerine build:tangerine :centos build:pear build:pear:!ubuntu build:peach build:peach:linux build:kiwi build:mango build:kiwi:ubuntu build:mango:torrent build:guava build:kiwi:centos
31 50.46.196.80 master-manager : stop:15.185.117.66
32 50.46.196.80 master-exec-0 : build:pear build:pear:!ubuntu build:guava build:grapefruit build:grapefrui
33 50.46.196.80 oneiric-
34 50.46.196.80 precise-
functions from step #10: t:air build:pear:!ubuntu build:pear build:guava build:grapefruit oneiric- 668621 build:kiwi build:lemon build:apple build:kiwi:ubuntu build:guava build:lemon: linux&& gcc build:peach:linux build:peach build:kiwi:centos :centos build:kiwi:centos build:tangerine :torrent build:pear:!ubuntu build:pear build:tangerine build:peach:linux build:peach
32 50.46.196.80 - : stop:15.185.117.66
31 50.46.196.80 - : build:grapefrui
33 50.46.196.80 - : build:apple:
34 50.46.196.80 - : build:kiwi build:mango build:kiwi:ubuntu build:mango:torrent build:guava build:tangerine
The functions seem to be correct, however the worker IDs seemed to have dropped off. My initial hunch is that this is a problem with the underlying gearman-java library that does the work to re-establish a lost connection with the server. I will investigate to see wether this is indeed the problem. Will also investigate options for making the connection more robust.