jenkinsci / jenkinsci/lockable-resources-plugin
[JENKINS-50260] lock step interacts badly with timeout step
- 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
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
Assessment
This issue has not been assessed yet.