hazelcast / hazelcast/hazelcast-cpp-client
[TRACKING ISSUE] Release acquired sessions on failure for SessionAwareSemaphore
Open
- Dominant language
- C++
- Stars
- 91
- Forks
- 54
- Avg merge
- 1d 12m
- Merged PRs (30d)
- 5
Description
The tracking issue for the Java side PR.
**Release acquired sessions on failure for SessionAwareSemaphore**
See https://github.com/hazelcast/hazelcast/pull/17826 for details.
---
In case of an unspecified exception, `acquire`, `tryAcquire` and
`drainPermits` methods were not releasing the acquired permits.
This is an attempt to fix that problem by catching unspecified errors,
releasing the number of acquired permits, and rethrowing.
I will prepare backports once this PR is approved and merged.
Contributor guide
Assessment
This issue has not been assessed yet.