apache / apache/curator

[CURATOR-592] Provide a callback that is fired after the InterProcessMutex creates its ephemeral node

Open
#1,109 2 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

InterProcessMutex performs two significant steps to acquire its lock:



  1. Creates an ephemeral sequential node. This practically means that it took a position in the lock queue (i.e. based on its sequence value).

  2. Blocks until the lock is acquired.

This improvement is about providing a callback that notifies the caller that the lock order is reserved.

The use for this, at least for us, is that we needed to differentiate between the two phases for higher concurrency because we can do other actions after knowing that the InterProcessMutex order is known. Especially since the lock acquisition can take too long, depending on the situation of course.

---
Originally reported by mgelbana, imported from: Provide a callback that is fired after the InterProcessMutex creates its ephemeral node


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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.