hazelcast / hazelcast/hazelcast-cpp-client

[TRACKING ISSUE] Release acquired sessions on failure for SessionAwareSemaphore

Open
#799 0 comments 0 reactions 0 assignees View on GitHub
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

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.