You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Cameron Lee (JIRA)" <ji...@apache.org> on 2019/05/17 21:45:02 UTC

[jira] [Updated] (SAMZA-2198) Container process always takes task.shutdown.ms to shut down

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

Cameron Lee updated SAMZA-2198:
-------------------------------
    Affects Version/s: 1.1
                       1.0

> Container process always takes task.shutdown.ms to shut down
> ------------------------------------------------------------
>
>                 Key: SAMZA-2198
>                 URL: https://issues.apache.org/jira/browse/SAMZA-2198
>             Project: Samza
>          Issue Type: Bug
>    Affects Versions: 1.0, 1.1
>            Reporter: Cameron Lee
>            Priority: Major
>
> https://issues.apache.org/jira/browse/SAMZA-1724 added a System.exit to LocalContainerRunner (now moved to ContainerLaunchUtil) in order to ensure the process exits. However, this seems to cause a partial deadlock when shutting down the container process. SamzaContainer adds a shutdown hook which joins on the run loop thread (which is also the main thread). During the shutdown process, when the main thread reaches the System.exit in ContainerLaunchUtil, it looks like it waits for the shutdown hook to complete. However, the shutdown hook is waiting for the main thread to join. Therefore, the shutdown hook will always wait task.shutdown.ms before giving up on joining the main thread, and then the process exits.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)