[
https://issues.apache.org/jira/browse/SAMZA-1724?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Prateek Maheshwari reassigned SAMZA-1724:
-----------------------------------------
Assignee: Prateek Maheshwari
> Guarantee exit from ApplicationRunnerMain during deploys
> --------------------------------------------------------
>
> Key: SAMZA-1724
> URL: https://issues.apache.org/jira/browse/SAMZA-1724
> Project: Samza
> Issue Type: Bug
> Reporter: Prateek Maheshwari
> Assignee: Prateek Maheshwari
> Priority: Major
>
> When running in YARN, control script runs ApplicationRunnerMain to
> start/stop/get status for jobs. On process exit, it parses the output of the
> process and looks for a particular string to check job status.
> Currently ApplicationRunnerMain's main method just returns at the end of
> execution. This can cause the process to get stuck (i.e. not exit) if there
> are still non-daemon threads running becuase some code doesn't shut down its
> executor services during shutdown.
> We should directly exit with System.exit(0) at the end of main to guarantee
> shutdown.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)