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.5 kB
        Lei Zhang
      2. ZOOKEEPER-732.patch
        0.8 kB
        Andrei Savu
      3. ZOOKEEPER-732-b3.4.patch
        1.0 kB
        Flavio Junqueira
      4. ZOOKEEPER-732-trunk.patch
        1.0 kB
        Flavio Junqueira

        Activity

        Gustavo Niemeyer created issue -
        Lei Zhang made changes -
        Field Original Value New Value
        Assignee Lei Zhang [ voyager ]
        Lei Zhang made changes -
        Attachment ZOOKEEPER-732.patch [ 12451965 ]
        Lei Zhang made changes -
        Attachment ZOOKEEPER-732.patch [ 12451972 ]
        Lei Zhang made changes -
        Attachment ZOOKEEPER-732.patch [ 12451965 ]
        Andrei Savu made changes -
        Attachment ZOOKEEPER-732.patch [ 12452001 ]
        Lei Zhang made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Release Note Client that uses python binding may receive SystemError on session expiration.
        Affects Version/s 3.3.0 [ 12313976 ]
        Affects Version/s 3.2.2 [ 12314335 ]
        Lei Zhang made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Fix Version/s 3.3.2 [ 12315108 ]
        Resolution Fixed [ 1 ]
        Michi Mutsuzaki made changes -
        Resolution Fixed [ 1 ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Patrick Hunt made changes -
        Fix Version/s 3.4.6 [ 12323310 ]
        Fix Version/s 3.5.0 [ 12316644 ]
        Fix Version/s 3.3.2 [ 12315108 ]
        Flavio Junqueira made changes -
        Attachment ZOOKEEPER-732-b3.4.patch [ 12606650 ]
        Attachment ZOOKEEPER-732-trunk.patch [ 12606651 ]
        Flavio Junqueira made changes -
        Status Reopened [ 4 ] Patch Available [ 10002 ]
        Flavio Junqueira made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Flavio Junqueira made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development