Skip to content

Conversation

@artembilan
Copy link
Member

Related to https://build.spring.io/browse/INT-MAIN-84/

The lock.unlock() must be called in the finally block of the
nested try..catch, not in the outer which may just fail on lock.lockInterruptibly()
in which case there is just not going to be anything we can unlock() in the end

Cherry-pick to 5.4.x & 5.3.x

Related to https://build.spring.io/browse/INT-MAIN-84/

The `lock.unlock()` must be called in the `finally` block of the
nested `try..catch`, not in the outer which may just fail on `lock.lockInterruptibly()`
in which case there is just not going to be anything we can `unlock()` in the end

**Cherry-pick to `5.4.x` & `5.3.x`**
@garyrussell garyrussell merged commit 5ec8913 into spring-projects:main Jul 19, 2021
@garyrussell
Copy link
Contributor

...and cherry-picked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants