Startup Race Condition

17 views
Skip to first unread message

Nigel Armstrong

unread,
Apr 30, 2020, 1:38:40 PM4/30/20
to Jenkins Users
Hi all,

I seem to be having a startup issue with my jenkins instance when I reboot. I have a number of EC2 nodes that have running builds when I reboot. After the reboot the builds running on these nodes are killed, but they shouldn't be.

After the reboot I have determined that `jenkins.branch.WorkspaceLocatorImpl$Collector.onOnline()` is checking if the builds still exist when the node comes online by checking `getItemByFullName()`. 
This seems to be returning null because the jobs are not loaded when the nodes come online. 

Is there any way to control the startup order and make sure jobs are loaded before nodes? Currently this seems like a race condition to me.

-Nigel

Nigel Armstrong

unread,
May 1, 2020, 5:20:28 PM5/1/20
to Jenkins Users
I ended up creating a jira for this, as this seems to be a race condition in core/branch-api-plugin. https://issues.jenkins-ci.org/browse/JENKINS-62142
Reply all
Reply to author
Forward
0 new messages