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

Guarantee exit from ApplicationRunnerMain during deploys

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When running in YARN, control script runs ApplicationRunnerMain to start/stop/get status for jobs. It parses the output of the process after it exits 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 didn't't shut down its executor services during shutdown.

      We should directly exit with System.exit(0) at the end of main to guarantee shutdown.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pmaheshwari Prateek Maheshwari
                Reporter:
                pmaheshwari Prateek Maheshwari
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: