[JIRA] (JENKINS-38354) Failure to resume a wrapper step leads to hanging build

2 views
Skip to first unread message

jglick@cloudbees.com (JIRA)

unread,
Sep 19, 2016, 3:17:03 PM9/19/16
to jenkinsc...@googlegroups.com
Jesse Glick created an issue
 
Jenkins / Bug JENKINS-38354
Failure to resume a wrapper step leads to hanging build
Issue Type: Bug Bug
Assignee: Kohsuke Kawaguchi
Components: workflow-cps-plugin
Created: 2016/Sep/19 7:16 PM
Labels: robustness
Priority: Major Major
Reporter: Jesse Glick

Take this PR and comment out optional=true which allows ConsoleLogFilterStep.Execution to be safely restored. Run Jenkins with it, create and attach a JNLP agent, create a Pipeline script running something like

node('agent-name') {
  checkout([$class: 'MercurialSCM', source: 'http://hg.netbeans.org/main-silver/'])
  ant 'build'
}

(or just any long-running Ant project) and start running. Once it is running Ant, restart Jenkins. After the restart, a bit more output will be printed and then the build will hang, irrecoverably. workflow-durable-task-step PR 17 will allow you to see that there is a Guice-related exception. But after that any attempt to abort the build will simply print an error: the sh step already got stopped, so exited with 143 (SIGTERM), but then the consoleLogFilter step's StepContext thinks it too is already finished, and will not allow it to be finished "again". The virtual thread dump says it is in consoleLogFilter. Only a hard kill suffices at this point.

Is there some way to force the CPS VM thread to treat the current StepExecution as a lost cause and really throw its exception up the call stack?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

vivek.pandey@gmail.com (JIRA)

unread,
Nov 16, 2018, 11:44:01 AM11/16/18
to jenkinsc...@googlegroups.com
Vivek Pandey updated an issue
Change By: Vivek Pandey
Labels: robustness triaged-2018-11
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jglick@cloudbees.com (JIRA)

unread,
Dec 10, 2019, 9:42:01 AM12/10/19
to jenkinsc...@googlegroups.com
Jesse Glick resolved as Won't Fix
 

After JENKINS-39134 we are not using Guice in this way so this is probably obsolete.

Change By: Jesse Glick
Status: Open Resolved
Assignee: Kohsuke Kawaguchi
Resolution: Won't Fix
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages