[CURATOR-598] InterProcessSemaphoreV2::getData to check against data changes on the semaphore
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
InterProcessSemaphoreV2 allows holders to set data on the acquired lease: exposing an Optional getData would allow an observer to check against mutex state change despite not being the lock owner (assuming owner has used setData prior a mutex acquisition).
This can be used to weakly enforce order of mutex acquisition or just check owner's identity and/or presence (assuming owner setData prior a mutex acquisition).
---
Originally reported by nigrofranz, imported from: InterProcessSemaphoreV2::getData to check against data changes on the semaphore
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at the InterProcessSemaphoreV2 entry point and trace how data is set on an acquired lease. Define the expected Optional getData behavior for observers, including owner-set data and absent data, then add coverage in the semaphore tests and verify observers can detect the relevant state changes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100