Issue Type: Bug Bug
Assignee: Nicolas De Loof
Components: build-flow-plugin
Created: 07/Dec/14 9:28 AM
Description:

Given the following build flow job:

parallel(
build_list.collect { a_build_name -> return {
guard{ run_build = build(a_build_name) } rescue {

if (run_build.result.name == "ABORTED"){ build("Job B") }//if
}//rescue
}// return
}// collect
)//parallel

When the build flow is "aborted" or its parent is aborted,
And I view .../jenkins/monitoring url
Then I see a list of threads "cryptically-named" pool-X-thread-Y (ex. pool-16-thread-100) in a "WAITING" state. It seems the thread pool is allocated for those jobs and never gets executed or released

These threads will never get out of the "WAITING" state, except I run the following script (alternatively kill the threads individually on the threads table):

Thread.getAllStackTraces().keySet().each(){ item ->
if(item.getName().contains(thread_name_string)){ println "Interrupting thread " + item.getId() + " " + item.getName(); item.interrupt() }
}

The above script will cause the rescue block to execute for each of the jobs in the build flow, i.e. the job queue on jenkins will show a list of "Job B" queued and their info thinks it was triggered by an already aborted job

If a user attempts the above actions multiple times without killing the threads (i.e. run jobs, and abort), the thread count will continue to increase. Eventually jenkins will be inaccessible from the web as it has exceeded the number of threads

It seems that when a build flow job is aborted, "scheduled/queued jobs" and "running" jobs are cancelled as expected, but jobs that will kick in via the rescue block seem to be orphaned, and taking up resources with regards to maximum thread count jenkins will generate

Project: Jenkins
Priority: Major Major
Reporter: Mable Schmidt
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to