ZooKeeper
  1. ZooKeeper
  2. ZOOKEEPER-732

Improper translation of error into Python exception

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.0
    • Fix Version/s: 3.4.6, 3.5.0
    • Component/s: contrib-bindings
    • Labels:
      None
    • Hadoop Flags:
      Reviewed
    • Release Note:
      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

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

        Activity

          People

          • Assignee:
            Lei Zhang
            Reporter:
            Gustavo Niemeyer
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development