hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kuhu Shukla (JIRA)" <j...@apache.org>
Subject [jira] [Created] (MAPREDUCE-7122) MRAppMaster should not exit before shutdown when an error is encountered
Date Thu, 12 Jul 2018 18:37:00 GMT
Kuhu Shukla created MAPREDUCE-7122:
--------------------------------------

             Summary: MRAppMaster should not exit before shutdown when an error is encountered
                 Key: MAPREDUCE-7122
                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-7122
             Project: Hadoop Map/Reduce
          Issue Type: Bug
    Affects Versions: 2.8.4
            Reporter: Kuhu Shukla


In a scenario where AM fails with an exception and calls the exit method, it fails to shutdown
cleanly and can cause the JHS to not shutdown cleanly either.

{code}
appMasterUgi.doAs(new PrivilegedExceptionAction<Object>() {
      @Override
      public Object run() throws Exception {
        appMaster.init(conf);
        appMaster.start();
        if(appMaster.errorHappenedShutDown) {
          throw new IOException("Was asked to shut down.");
        }
        return null;
      }
    });
{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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


Mime
View raw message