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

fix FederationIntercepter merge home and secondary allocate response typo

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Resolved
    • Affects Version/s: 3.3.0
    • Fix Version/s: 2.10.0, 3.3.0
    • Component/s: federation
    • Labels:
      None

      Description

      method 'mergeAllocateResponse' in class FederationIntercepter.java line 1315

      the left variable `par2` should be `par1`

      if (par1 != null && par2 != null) {
        par1.getResourceRequest().addAll(par2.getResourceRequest());
        par2.getContainers().addAll(par2.getContainers());
      }
      

      should be

      if (par1 != null && par2 != null) {
        par1.getResourceRequest().addAll(par2.getResourceRequest());
        par1.getContainers().addAll(par2.getContainers());//edited line
      }
      

        Attachments

        1. YARN-9108.006.patch
          6 kB
          Abhishek Modi
        2. YARN-9108.005.patch
          6 kB
          Abhishek Modi
        3. YARN-9108.004.patch
          6 kB
          Abhishek Modi
        4. YARN-9108.003.patch
          6 kB
          Abhishek Modi
        5. YARN-9108.002.patch
          6 kB
          Abhishek Modi
        6. YARN-9108.001.patch
          6 kB
          Abhishek Modi

          Activity

            People

            • Assignee:
              abmodi Abhishek Modi
              Reporter:
              Cedar Morty Zhong
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: