You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Adam Antal (Jira)" <ji...@apache.org> on 2020/01/13 16:31:00 UTC

[jira] [Created] (YARN-10083) Provide utility to

Adam Antal created YARN-10083:
---------------------------------

             Summary: Provide utility to 
                 Key: YARN-10083
                 URL: https://issues.apache.org/jira/browse/YARN-10083
             Project: Hadoop YARN
          Issue Type: Sub-task
            Reporter: Adam Antal
            Assignee: Adam Antal


This code part is severely duplicated across the Hadoop repo:

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

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org