[
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.0.patch
Hi,
here is my patch for this issue.
RB: https://reviews.apache.org/r/37604/
> 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
>
>
> 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)