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

C api lacks synchronous version of sync() call.

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.3.3, 3.4.3, 3.5.0
    • Fix Version/s: 3.5.4, 3.6.0
    • Component/s: c client
    • Labels:
      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

          Activity

            People

            • Assignee:
              marshall Marshall McMullen
              Reporter:
              nrh Nicholas Harteau
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: