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

TestFSQueueConverter#testAutoCreateV2FlagsInWeightMode has a missing dot before auto-queue-creation-v2.enabled for method call assertNoValueForQueues

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.3.4
    • 3.4.0
    • yarn
    • Reviewed

    Description

      This testcase clearly reproduces the issue. There is a missing dot before "auto-queue-creation-v2.enabled" for method call assertNoValueForQueues.

      @Test
      public void testAutoCreateV2FlagsInWeightMode() {
        converter = builder.withPercentages(false).build();
      
        converter.convertQueueHierarchy(rootQueue);
      
        assertTrue("root autocreate v2 flag",
            csConfig.getBoolean(
                PREFIX + "root.auto-queue-creation-v2.enabled", false));
        assertTrue("root.admins autocreate v2 flag",
            csConfig.getBoolean(
                PREFIX + "root.admins.auto-queue-creation-v2.enabled", false));
        assertTrue("root.users autocreate v2 flag",
            csConfig.getBoolean(
                PREFIX + "root.users.auto-queue-creation-v2.enabled", false));
        assertTrue("root.misc autocreate v2 flag",
            csConfig.getBoolean(
                PREFIX + "root.misc.auto-queue-creation-v2.enabled", false));
      
        Set<String> leafs = Sets.difference(ALL_QUEUES,
            Sets.newHashSet("root",
                "root.default",
                "root.admins",
                "root.users",
                "root.misc"));
        assertNoValueForQueues(leafs, "auto-queue-creation-v2.enabled",
            csConfig);
      } 

      Attachments

        Issue Links

          Activity

            People

              susheel.gupta Susheel Gupta
              susheel_7 Susheel Gupta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: