You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Henry Robinson (JIRA)" <ji...@apache.org> on 2012/04/30 22:34:03 UTC
[jira] [Updated] (ZOOKEEPER-1318) In Python binding, get_children
(and get and exists, and probably others) with expired session doesn't
raise exception properly
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Henry Robinson updated ZOOKEEPER-1318:
--------------------------------------
Attachment: ZOOKEEPER-1318.patch
The error is a missing InvalidStateException. I've added the exception type, and confirmed that it show up when session expiration occurs.
> In Python binding, get_children (and get and exists, and probably others) with expired session doesn't raise exception properly
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-1318
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1318
> Project: ZooKeeper
> Issue Type: Bug
> Components: contrib-bindings
> Affects Versions: 3.3.3
> Environment: Mac OS X (at least)
> Reporter: Jim Fulton
> Attachments: ZOOKEEPER-1318.patch
>
>
> In Python binding, get_children (and get and exists, and probably others) with expired session doesn't raise exception properly.
> >>> zookeeper.state(h)
> -112
> >>> zookeeper.get_children(h, '/')
> Traceback (most recent call last):
> File "<console>", line 1, in <module>
> SystemError: error return without exception set
> Let me know if you'd like me to work on a patch.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira