[
https://issues.apache.org/jira/browse/SAMZA-1220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prateek Maheshwari reassigned SAMZA-1220:
-----------------------------------------
Assignee: Navina Ramesh
[~navina], assigning to you since you're already working on SamzaContainer
lifecycle. The only additional item here is giving a name to the shutdown hook
thread.
Minor cleanup: There's a (now) unused SamzaContainerExceptionHandler that we
can either reuse or delete.
> Add thread name to SamzaContainer shutdown hook and prevent shutdown deadlock
> -----------------------------------------------------------------------------
>
> Key: SAMZA-1220
> URL: https://issues.apache.org/jira/browse/SAMZA-1220
> Project: Samza
> Issue Type: Bug
> Reporter: Prateek Maheshwari
> Assignee: Navina Ramesh
> Fix For: 0.13.0
>
>
> [[email protected]] and I were recently looking at a thread dump for a
> SamzaContainer that had deadlocked during the shutdown sequence. We noticed a
> couple of issues:
> 1. Adding a thread name to the shutdown hook thread will make debugging
> easier.
> 2. The shutdown hook thread's thread group is main's thread group. Main's
> default uncaught exception handler calls System.exit() in
> LocalContainerRunner. This leads to a deadlock if the shutdown hook throws an
> exception. We can either catch and ignore these exceptions or create a new
> thread group for it.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)