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

Improper translation of error into Python exception

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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.8 kB
          Andrei Savu
        2. ZOOKEEPER-732.patch
          0.5 kB
          Lei Zhang
        3. ZOOKEEPER-732-b3.4.patch
          1.0 kB
          Flavio Paiva Junqueira
        4. ZOOKEEPER-732-trunk.patch
          1.0 kB
          Flavio Paiva Junqueira

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment