You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Prateek Maheshwari (JIRA)" <ji...@apache.org> on 2017/04/19 19:16:41 UTC
[jira] [Created] (SAMZA-1220) Add thread name to SamzaContainer
shutdown hook and prevent
Prateek Maheshwari created SAMZA-1220:
-----------------------------------------
Summary: Add thread name to SamzaContainer shutdown hook and prevent
Key: SAMZA-1220
URL: https://issues.apache.org/jira/browse/SAMZA-1220
Project: Samza
Issue Type: Bug
Reporter: Prateek Maheshwari
Fix For: 0.13.0
[~jagadish1989@gmail.com] 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)