You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2011/07/25 13:55:09 UTC
[jira] [Created] (FELIX-3053) Potential deadlock if event handler
throws Throwable and is bypassing timeout handling
Potential deadlock if event handler throws Throwable and is bypassing timeout handling
--------------------------------------------------------------------------------------
Key: FELIX-3053
URL: https://issues.apache.org/jira/browse/FELIX-3053
Project: Felix
Issue Type: Bug
Components: Event Admin
Affects Versions: eventadmin-1.2.12
Reporter: Carsten Ziegeler
Assignee: Carsten Ziegeler
Fix For: eventadmin-1.2.14
If an event handler is bypassing the timeout handling (by configuration) and throws a throwable (like IllegalStateException), this can cause deadlocks as this is never catched and the internal state of the handlers goes out of sync.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (FELIX-3053) Potential deadlock if event handler
throws Throwable and is bypassing timeout handling
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3053?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carsten Ziegeler resolved FELIX-3053.
-------------------------------------
Resolution: Fixed
> Potential deadlock if event handler throws Throwable and is bypassing timeout handling
> --------------------------------------------------------------------------------------
>
> Key: FELIX-3053
> URL: https://issues.apache.org/jira/browse/FELIX-3053
> Project: Felix
> Issue Type: Bug
> Components: Event Admin
> Affects Versions: eventadmin-1.2.12
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: eventadmin-1.2.14
>
>
> If an event handler is bypassing the timeout handling (by configuration) and throws a throwable (like IllegalStateException), this can cause deadlocks as this is never catched and the internal state of the handlers goes out of sync.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (FELIX-3053) Potential deadlock if event handler
throws Throwable and is bypassing timeout handling
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070447#comment-13070447 ]
Carsten Ziegeler commented on FELIX-3053:
-----------------------------------------
With ususal timeout handling, this can't happen as the thread executor catches Throwables.
Added catching of throwables to the handler task in revision 1150645
> Potential deadlock if event handler throws Throwable and is bypassing timeout handling
> --------------------------------------------------------------------------------------
>
> Key: FELIX-3053
> URL: https://issues.apache.org/jira/browse/FELIX-3053
> Project: Felix
> Issue Type: Bug
> Components: Event Admin
> Affects Versions: eventadmin-1.2.12
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: eventadmin-1.2.14
>
>
> If an event handler is bypassing the timeout handling (by configuration) and throws a throwable (like IllegalStateException), this can cause deadlocks as this is never catched and the internal state of the handlers goes out of sync.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (FELIX-3053) Potential deadlock if event handler
throws Throwable and is bypassing timeout handling
Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070492#comment-13070492 ]
Carsten Ziegeler commented on FELIX-3053:
-----------------------------------------
Obviously, the description above was wrong: this happens only if an Error is thrown - and IllegalStateException is not an error but an exception which is handled correctly
> Potential deadlock if event handler throws Throwable and is bypassing timeout handling
> --------------------------------------------------------------------------------------
>
> Key: FELIX-3053
> URL: https://issues.apache.org/jira/browse/FELIX-3053
> Project: Felix
> Issue Type: Bug
> Components: Event Admin
> Affects Versions: eventadmin-1.2.12
> Reporter: Carsten Ziegeler
> Assignee: Carsten Ziegeler
> Fix For: eventadmin-1.2.14
>
>
> If an event handler is bypassing the timeout handling (by configuration) and throws a throwable (like IllegalStateException), this can cause deadlocks as this is never catched and the internal state of the handlers goes out of sync.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira