Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-10025 Various improvements in YARN log servlets
  3. YARN-10083

Provide utility to ask whether an application is in final status

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.2
    • None
    • None
    • Reviewed

    Description

      This code part is severely duplicated across the Hadoop repo:

        public static boolean isApplicationFinalState(YarnApplicationState appState) {
          return appState == YarnApplicationState.FINISHED
              || appState == YarnApplicationState.FAILED
              || appState == YarnApplicationState.KILLED;
        }
      

      This functionality is used heavily by the log aggregation as well, so we may do some sanitizing here.

      Attachments

        1. YARN-10083.001.patch
          31 kB
          Adam Antal
        2. YARN-10083.002.patch
          31 kB
          Adam Antal
        3. YARN-10083.002.patch
          31 kB
          Adam Antal
        4. YARN-10083.003.patch
          33 kB
          Adam Antal
        5. YARN-10083.branch-3.2.001.patch
          28 kB
          Adam Antal

        Activity

          People

            adam.antal Adam Antal
            adam.antal Adam Antal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: