jenkinsci / jenkinsci/lockable-resources-plugin

[JENKINS-50260] lock step interacts badly with timeout step

Open
#906 3 comments 0 reactions 0 assignees View on GitHub
component:lockable-resources-plugin imported-jira-issue priority:blocker resolution:unresolved Triage
Dominant language
Java
Stars
99
Forks
205
Avg merge
2d 13h
Merged PRs (30d)
8

Description

I have a job which takes a lock {} inside of a timeout {} block.

If the timeout expires, then the lock {} is not freed, which results in future taking of the lock becoming a deadlock.

It seems like timeout {} should properly free the lock when forcing an exit from the lock() step? Is this just a bad pipeline/workflow pattern?

---
Originally reported by jekeller, imported from: lock step interacts badly with timeout step


  • status: Open
  • priority: Blocker
  • component(s): lockable-resources-plugin
  • resolution: Unresolved
  • votes: 4
  • watchers: 6
  • imported: 20251217-081411

Raw content of original issue

I have a job which takes a lock {} inside of a timeout {} block.

If the timeout expires, then the lock {} is not freed, which results in future taking of the lock becoming a deadlock.

It seems like timeout {} should properly free the lock when forcing an exit from the lock() step? Is this just a bad pipeline/workflow pattern?

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.