Details

    • Sub-task
    • Status: Resolved
    • Blocker
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      When NM restart, containers will be recovered. However, only memory and vcores in capability have been recovered. All resources need to be recovered.

      ContainerImpl.java
            // resource capability had been updated before NM was down
            this.resource = Resource.newInstance(recoveredCapability.getMemorySize(),
                recoveredCapability.getVirtualCores());
      

      It should be like this.

      ContainerImpl.java
            // resource capability had been updated before NM was down
            // need to recover all resources, not only <mem, vcores>
            this.resource = Resources.clone(recoveredCapability);
      

      Attachments

        1. YARN-6589-YARN-3926.001.patch
          6 kB
          Yang Wang
        2. YARN-6589.001.patch
          7 kB
          Yang Wang
        3. YARN-6589.002.patch
          7 kB
          Yang Wang

        Issue Links

          Activity

            People

              wangyang0918 Yang Wang
              wangyang0918 Yang Wang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: