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

Improper translation of error into Python exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.3.0
    • 3.4.6, 3.5.0
    • contrib-bindings
    • None
    • Reviewed
    • Client that uses python binding may receive SystemError on session expiration.

    Description

      Apparently errors returned by the C library are not being correctly converted into a Python exception in some cases:

      >>> zookeeper.get_children(0, "/", None)
      Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      SystemError: error return without exception set

      Attachments

        1. ZOOKEEPER-732.patch
          0.5 kB
          Lei Zhang
        2. ZOOKEEPER-732.patch
          0.8 kB
          Andrei Savu
        3. ZOOKEEPER-732-b3.4.patch
          1.0 kB
          Flavio Paiva Junqueira
        4. ZOOKEEPER-732-trunk.patch
          1.0 kB
          Flavio Paiva Junqueira

        Activity

          People

            voyager Lei Zhang
            niemeyer Gustavo Niemeyer
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: