Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-555

Add stat information to GetChildrenResponse

    XMLWordPrintableJSON

Details

    • Incompatible change, Reviewed
    • Hide
      This change is backward incompatible with server versions prior to 3.3.0 given that the wire protocol has changed. However at the client API level this is a b/w compatible change (added new api methods).

      Changes required to have Stat returned with get_children().
      Show
      This change is backward incompatible with server versions prior to 3.3.0 given that the wire protocol has changed. However at the client API level this is a b/w compatible change (added new api methods). Changes required to have Stat returned with get_children().

    Description

      GetChildren() is the only non-create/delete API which does not include the node stat information. I propose that the definition of GetChildren() should be:

      class GetChildrenResponse

      { vector<ustring> children; org.apache.zookeeper.data.Stat stat; }

      There is a trivial fix to the server (FinalRequestProcessor.java): rsp = new GetChildrenResponse(children, stat);

      And something similar to the client library.

      Attachments

        1. ZOOKEEPER-555.patch
          70 kB
          Patrick D. Hunt
        2. ZOOKEEPER-555.patch
          65 kB
          Patrick D. Hunt
        3. ZOOKEEPER-555.patch
          66 kB
          Árni Már Jónsson
        4. getchildren_stat.patch
          11 kB
          Árni Már Jónsson

        Issue Links

          Activity

            People

              arnimarj Árni Már Jónsson
              arnimarj Árni Már Jónsson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: