jenkinsci / jenkinsci/workflow-durable-task-step-plugin

[JENKINS-54513] Builds occupying executor but not running

Open
#567 2 comments 0 reactions 0 assignees View on GitHub
component:workflow-durable-task-step-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
46
Forks
110
PR merge metrics
No merged PRs in 30d

Description

We have seen a couple of jobs which appear to have got executors stuck while starting the build.

For example one buildhas console output (build #428)

Started by upstream project "/" build number 181

originally caused by:

{{ Started by upstream project "/" build number 852}}

{{ originally caused by:}}

{{ Started by upstream project "/" build number 1569}}

{{ originally caused by:}}

{{ Started by user }}

{{ Replayed #1568}}

Resume disabled by user, switching to high-performance, low-durability mode.

[Pipeline] node

Still waiting to schedule task

Aborted by

Click here to forcibly terminate running steps

Click here to forcibly kill entire build

Hard kill!

Finished: ABORTED

 

And according the build history of that job it has been aborted. However, in the Build Executor Status an executor has been allocated and it believe that it is still running. Trying to abort from Build Executor Status doesn't do anything.

This happened across 4 jobs which were run in parallel, triggered by another job and were started within 2 seconds of each other.

I could not see any blocked threads on the node (and we have tried restarting the Jenkins agent service) to no avail.

There are some blocked threads on the master, see threadDump.txt. It looks like this is some kind of deadlock condition with multiple jobs being triggered in a short space of time. (Can provide a fuller thread dump if useful but would take time to obfuscate).

Note that it does not look like it was killing the job that caused it, it looks like it was on build startup, before or when it was being allocated a node, and killing the job didn't help.

---
Originally reported by rg, imported from: Builds occupying executor but not running


  • status: Open
  • priority: Major
  • component(s): workflow-durable-task-step-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 7
  • imported: 20251212-090250

Raw content of original issue

We have seen a couple of jobs which appear to have got executors stuck while starting the build.

For example one buildhas console output (build #428)

Started by upstream project "<folder>/<job1>" build number 181
originally caused by:
{{ Started by upstream project "<folder>/<job2>" build number 852}}
{{ originally caused by:}}
{{ Started by upstream project "<folder>/<job3>" build number 1569}}
{{ originally caused by:}}
{{ Started by user <user>}}
{{ Replayed #1568}}
Resume disabled by user, switching to high-performance, low-durability mode.
[Pipeline] node
Still waiting to schedule task
Aborted by <user>
Click here to forcibly terminate running steps
Click here to forcibly kill entire build
Hard kill!
Finished: ABORTED

 

And according the build history of that job it has been aborted. However, in the Build Executor Status an executor has been allocated and it believe that it is still running. Trying to abort from Build Executor Status doesn't do anything.

This happened across 4 jobs which were run in parallel, triggered by another job and were started within 2 seconds of each other.

I could not see any blocked threads on the node (and we have tried restarting the Jenkins agent service) to no avail.

There are some blocked threads on the master, see threadDump.txt. It looks like this is some kind of deadlock condition with multiple jobs being triggered in a short space of time. (Can provide a fuller thread dump if useful but would take time to obfuscate).

Note that it does not look like it was killing the job that caused it, it looks like it was on build startup, before or when it was being allocated a node, and killing the job didn't help.

  • environment: jenkins 2.107.3

3 attachments

- [BuildExecutors.PNG](https://issues.jenkins.io/secure/attachment/45083/BuildExecutors.PNG)
> ![BuildExecutors.PNG](https://issues.jenkins.io/secure/attachment/45083/BuildExecutors.PNG)
- [BuildHistory.PNG](https://issues.jenkins.io/secure/attachment/45082/BuildHistory.PNG)
> ![BuildHistory.PNG](https://issues.jenkins.io/secure/attachment/45082/BuildHistory.PNG)
- [threadDump.txt](https://issues.jenkins.io/secure/attachment/45081/threadDump.txt)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.