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

javadoc for multi is confusing, references functionality that doesn't seem to exist

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.1
    • 3.4.3, 3.5.0
    • java client
    • None
    • Reviewed
    • Improved Javadoc for multi API's.

    Description

      There's this in org.apache.zookeeper.ZooKeeper.multi(Iterable<Op>)

           * Executes multiple Zookeeper operations or none of them.  On success, a list of results is returned.
           * On failure, only a single exception is returned.  If you want more details, it may be preferable to
           * use the alternative form of this method that lets you pass a list into which individual results are
           * placed so that you can zero in on exactly which operation failed and why.
      

      What is the "alternate form of this method" that's being referred to? Seems like we should add this functionality, or at the very least update the javadoc. (I don't think this is referring to Transaction, although the docs there are pretty thin)

      Attachments

        1. ZOOKEEPER-1336.patch
          5 kB
          Patrick D. Hunt

        Activity

          People

            phunt Patrick D. Hunt
            phunt Patrick D. Hunt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: