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

TestRMAdminService fails due to inconsistent entries in UserGroups

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 3.0.0-alpha1
    • Fix Version/s: 2.4.1
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      testRefreshUserToGroupsMappingsWithFileSystemBasedConfigurationProvider fails with the following error:

      java.lang.AssertionError: null
      	at org.junit.Assert.fail(Assert.java:92)
      	at org.junit.Assert.assertTrue(Assert.java:43)
      	at org.junit.Assert.assertTrue(Assert.java:54)
      	at org.apache.hadoop.yarn.server.resourcemanager.TestRMAdminService.testRefreshUserToGroupsMappingsWithFileSystemBasedConfigurationProvider(TestRMAdminService.java:421)
      	at org.apache.hadoop.yarn.server.resourcemanager.TestRMAdminService.testOrder(TestRMAdminService.java:104)
      

      Line Numbers will be inconsistent as I was testing to run it in a particular order. But the Line on which the failure occurs is

      Assert.assertTrue(groupBefore.contains("test_group_A")
              && groupBefore.contains("test_group_B")
              && groupBefore.contains("test_group_C") && groupBefore.size() == 3);
      

      testRMInitialsWithFileSystemBasedConfigurationProvider() and
      testRefreshUserToGroupsMappingsWithFileSystemBasedConfigurationProvider()
      calls the function MockUnixGroupsMapping.updateGroups(); which changes the list of userGroups.

      testRefreshUserToGroupsMappingsWithFileSystemBasedConfigurationProvider() tries to verify the groups before changing it and fails if testRMInitialsWithFileSystemBasedConfigurationProvider() already ran and made the changes.

        Attachments

        1. YARN-1883.patch
          2 kB
          Mit Desai
        2. YARN-1883.patch
          2 kB
          Mit Desai

          Activity

            People

            • Assignee:
              mitdesai Mit Desai
              Reporter:
              mitdesai Mit Desai
            • Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: