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

InterProcessSemaphoreV2::getData to check against data changes on the semaphore

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 5.1.0
    • None
    • Recipes
    • None

    Description

      InterProcessSemaphoreV2 allows holders to set data on the acquired lease: exposing an Optional<byte[]> 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).

      Attachments

        Activity

          People

            Unassigned Unassigned
            nigrofranz Francesco Nigro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: