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

TestRMAdminService Fails in trunk and branch-2 : Assert Fails due to different count of UserGroups for currentUser()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.4.0
    • None
    • Reviewed

    Description

      In the test testRefreshUserToGroupsMappingsWithFileSystemBasedConfigurationProvider, the following assert is not needed.

      Assert.assertTrue(groupWithInit.size() != groupBefore.size());
      

      As the assert takes the default groups for groupWithInit (which in my case are users, sshusers and wheel), it fails as the size of both groupWithInit and groupBefore are same.

      I do not think we need to have this assert here. Moreover we are also checking that the groupInit does not have the userGroups that are in the groupBefore so removing the assert may not be harmful.

      Attachments

        1. YARN-1833-v2.patch
          2 kB
          Mit Desai
        2. YARN-1833.patch
          1 kB
          Mit Desai

        Activity

          People

            mitdesai Mit Desai
            mitdesai Mit Desai
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: