Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-6982

Potential issue on setting AMContainerSpec#tokenConf to null before app is completed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.9.0, 3.0.0-beta1
    • None
    • None
    • Reviewed

    Description

      While reviewing patch for YARN-65, I found that many places RMAppImpl#submissionContext sets containerLaunchcontext#setTokensConf has been set to null i.e

      // set the memory free
      app.submissionContext.getAMContainerSpec().setTokensConf(null);
      

      This appears be a issue if application is updated may be because queue move or lifetime or priority, then submission context will be restored again into state store. Consider after app update, if RM is restarted then submission context will have null tokenConf. This could be a potential issue.

      Attachments

        1. YARN-6982.001.patch
          10 kB
          Manikandan R

        Issue Links

          Activity

            People

              manirajv06@gmail.com Manikandan R
              rohithsharma Rohith Sharma K S
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: