Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-592

Provide a callback that is fired after the InterProcessMutex creates its ephemeral node

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.1.0
    • TBD
    • Recipes

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mgelbana Mohamed Mohsen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 20m
                1h 20m