Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-7122

MRAppMaster should not exit before shutdown when an error is encountered

    Details

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

      Description

      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.

      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;
            }
          });
      

        Attachments

          Activity

            People

            • Assignee:
              kshukla Kuhu Shukla
              Reporter:
              kshukla Kuhu Shukla
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: