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/10/08 11:44:26 UTC

[jira] [Updated] (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 updated SAMZA-760:
----------------------------------------
    Attachment: SAMZA-760.2.patch

> 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
>         Attachments: SAMZA-760.0.patch, SAMZA-760.1.patch, SAMZA-760.2.patch
>
>
> 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)