Uploaded image for project: 'Samza'
  1. Samza
  2. SAMZA-1709

Use lazy creation for SystemAdmins in ApplicationRunners

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cameronlee314 Cameron Lee
                Reporter:
                cameronlee314 Cameron Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: