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

Support the initial data for the node in InterProcessReadWriteLock

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.7.1
    • Recipes
    • None

    Description

      Currently, locks(writeLock, readLock) in InterProcessReadWriteLock use the InetAddress for a initial data for the node, It is a little difficult to debug the lock owner as it shows only IP. If the initial data for lock node can be set, participantNodes contains the given information(hostname, id). So, it is easy to debug participantNodes.

      writeLock = InterProcessReadWriteLock.writeLock();
      Collection<String> nodes = writeLock.getParticipantNodes();
      for (String node: nodes) {
          String nodeData = new String(client.getData().forPath(node));
      }
      

      nodeData should be the information which is given in argument.

      Attachments

        Activity

          People

            Unassigned Unassigned
            seoeun25 seoeun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: