Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

              • Assignee:
                fly_in_gis Yang Wang
                Reporter:
                fly_in_gis Yang Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: