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

Fix typo and warning in TestLeafQueue

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.4.0
    • 2.5.0
    • None
    • None

    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

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

            Dates

              Created:
              Updated:
              Resolved: