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

Fix typo and warning in TestLeafQueue

    XMLWordPrintableJSON

    Details

    • Type: Test
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.5.0
    • Component/s: None
    • Labels:
      None
    • Target Version/s:

      Description

      a.assignContainers(clusterResource, node_0);
      assertEquals(2*GB, a.getUsedResources().getMemory());
      assertEquals(2*GB, app_0.getCurrentConsumption().getMemory());
      assertEquals(0*GB, app_1.getCurrentConsumption().getMemory());
      assertEquals(0*GB, app_0.getHeadroom().getMemory()); // User limit = 2G
      assertEquals(0*GB, app_0.getHeadroom().getMemory()); // User limit = 2G

      // Again one to user_0 since he hasn't exceeded user limit yet
      a.assignContainers(clusterResource, node_0);
      assertEquals(3*GB, a.getUsedResources().getMemory());
      assertEquals(2*GB, app_0.getCurrentConsumption().getMemory());
      assertEquals(1*GB, app_1.getCurrentConsumption().getMemory());
      assertEquals(0*GB, app_0.getHeadroom().getMemory()); // 3G - 2G
      assertEquals(0*GB, app_0.getHeadroom().getMemory()); // 3G - 2G

        Attachments

        1. YARN-2011-v2.patch
          2 kB
          Chen He
        2. YARN-2011.patch
          2 kB
          Chen He

          Activity

            People

            • Assignee:
              airbots Chen He
              Reporter:
              airbots Chen He
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: