apache / apache/curator

[CURATOR-650] Make InterProcessSemaphoreV2 revocable

Open
#1,166 0 comments 0 reactions 0 assignees View on GitHub
imported-jira-issue rfe
Dominant language
Java
Stars
3.2k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

Hi. I use InterProcessSemaphoreV2 in my application and I need to revoke an acquired lease under certain conditions. Locks like InterProcessMutex support cooperative revocation by implementing Revocable interface. Can same be done for InterProcessSemaphoreV2? 

Thank you

---
Originally reported by borisd, imported from: Make InterProcessSemaphoreV2 revocable


  • status: Open
  • priority: Major
  • resolution: Unresolved
  • imported: 2025-01-21

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating InterProcessSemaphoreV2 and the Revocable interface, then compare the revocation support in InterProcessMutex. Trace how an acquired lease is represented and identify the existing tests for both classes. Done means an acquired semaphore lease can be cooperatively revoked under the same model as the mutex, with tests covering that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
distributed-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.