You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Aleksandar Bircakovic (JIRA)" <ji...@apache.org> on 2015/08/19 09:04:53 UTC

[jira] [Assigned] (SAMZA-760) Samza Container should catch Throwables instead of just catching Exceptions

     [ https://issues.apache.org/jira/browse/SAMZA-760?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aleksandar Bircakovic reassigned SAMZA-760:
-------------------------------------------

    Assignee: Aleksandar Bircakovic

> Samza Container should catch Throwables instead of just catching Exceptions 
> ----------------------------------------------------------------------------
>
>                 Key: SAMZA-760
>                 URL: https://issues.apache.org/jira/browse/SAMZA-760
>             Project: Samza
>          Issue Type: Bug
>            Reporter: Jagadish
>            Assignee: Aleksandar Bircakovic
>
> Currently,  in the run method in SamzaContainer.scala, we catch only Exceptions and re-throw them. 
> However, when there's an Error (like for example - a MethodNotFound Error owing to say - a backward incompatible change in one of the binaries used by the user-code) thrown from inside, it is not logged or caught. Consequently, there's no information or logs for that error and it goes mysteriously missing.
> Fix:
> We must add a catch for Throwables (to make it more general) and throw a SamzaException wrapping the Throwable as the cause.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)