[
https://issues.apache.org/jira/browse/SAMZA-1709?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16511771#comment-16511771
]
ASF GitHub Bot commented on SAMZA-1709:
---------------------------------------
Github user asfgit closed the pull request at:
https://github.com/apache/samza/pull/512
> Use lazy creation for SystemAdmins in ApplicationRunners
> --------------------------------------------------------
>
> Key: SAMZA-1709
> URL: https://issues.apache.org/jira/browse/SAMZA-1709
> Project: Samza
> Issue Type: Improvement
> Reporter: Cameron Lee
> Assignee: Cameron Lee
> Priority: Major
>
> An instance of SystemAdmins is created when instantiating any
> AbstractApplicationRunner, but the SystemAdmins is only actually needed for
> some of the methods for some of the runners. For example,
> LocalApplicationRunner.kill does not need SystemAdmins, and
> LocalContainerRunner does not need SystemAdmins for anything.
> Doing lazy instantiation allows us to more easily manage the SystemAdmins
> lifecycle, since it removes the need to add lifecycle hooks for the
> ApplicationRunner.
> This also fixes the lifecycle management for SystemAdmins in
> ApplicationRunners.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)