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:42:00 UTC
[jira] [Created] (SAMZA-2198) Container process always takes
task.shutdown.ms to shut down
Cameron Lee created SAMZA-2198:
----------------------------------
Summary: 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
Reporter: Cameron Lee
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)