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

C api lacks synchronous version of sync() call.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 3.3.3, 3.4.3, 3.5.0
    • None
    • c client
    • None

    Description

      Reading through the source, the C API implements zoo_async() which is the zookeeper sync() method implemented in the multithreaded/asynchronous C API. It doesn't implement anything equivalent in the non-multithreaded API.

      I'm not sure if this was oversight or intentional, but it means that the non-multithreaded API can't guarantee consistent client views on critical reads.

      The zkperl bindings depend on the synchronous, non-multithreaded API so also can't call sync() currently.

      Attachments

        1. ZOOKEEPER-1167.patch
          2 kB
          Marshall McMullen

        Issue Links

          Activity

            People

              marshall Marshall McMullen
              nrh Nicholas Harteau
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: