You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Benjamin Reed (JIRA)" <ji...@apache.org> on 2008/06/18 23:45:45 UTC

[jira] Created: (ZOOKEEPER-47) io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received

io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received
-------------------------------------------------------------------------------

                 Key: ZOOKEEPER-47
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-47
             Project: Zookeeper
          Issue Type: Bug
          Components: c client
            Reporter: Benjamin Reed


If a session expires, the zhandle_t becomes invalid and useless; however, the io thread keeps going.

do_io in mt_adaptor.c needs to check the return code of zookeeper_interest and zookeeper_process and get out of the loop if the handle is invalid.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (ZOOKEEPER-47) io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/ZOOKEEPER-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Reed resolved ZOOKEEPER-47.
------------------------------------

    Resolution: Invalid

> io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received
> -------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-47
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-47
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: Benjamin Reed
>
> If a session expires, the zhandle_t becomes invalid and useless; however, the io thread keeps going.
> do_io in mt_adaptor.c needs to check the return code of zookeeper_interest and zookeeper_process and get out of the loop if the handle is invalid.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-47) io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received

Posted by "Andrew Kornev (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608625#action_12608625 ] 

Andrew Kornev commented on ZOOKEEPER-47:
----------------------------------------

But that's exactly what the do_io does! It check if the zhandle_t state is unrecoverable and terminates if it is.

> io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received
> -------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-47
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-47
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: Benjamin Reed
>
> If a session expires, the zhandle_t becomes invalid and useless; however, the io thread keeps going.
> do_io in mt_adaptor.c needs to check the return code of zookeeper_interest and zookeeper_process and get out of the loop if the handle is invalid.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (ZOOKEEPER-47) io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received

Posted by "Benjamin Reed (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ZOOKEEPER-47?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608797#action_12608797 ] 

Benjamin Reed commented on ZOOKEEPER-47:
----------------------------------------

You're right. I was reading the code wrong.

> io thread still around after a EXPIRED_SESSION or AUTH_FAILED event is received
> -------------------------------------------------------------------------------
>
>                 Key: ZOOKEEPER-47
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-47
>             Project: Zookeeper
>          Issue Type: Bug
>          Components: c client
>            Reporter: Benjamin Reed
>
> If a session expires, the zhandle_t becomes invalid and useless; however, the io thread keeps going.
> do_io in mt_adaptor.c needs to check the return code of zookeeper_interest and zookeeper_process and get out of the loop if the handle is invalid.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.