hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kihwal Lee (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-10581) TestUserGroupInformation#testGetServerSideGroups fails because groups stored in Set and ArrayList are compared
Date Sat, 10 May 2014 22:12:11 GMT

     [ https://issues.apache.org/jira/browse/HADOOP-10581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kihwal Lee updated HADOOP-10581:
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Committed to trunk and branch-2.

> TestUserGroupInformation#testGetServerSideGroups fails because groups stored in Set and
ArrayList are compared
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-10581
>                 URL: https://issues.apache.org/jira/browse/HADOOP-10581
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.4.1
>            Reporter: Mit Desai
>            Assignee: Mit Desai
>             Fix For: 2.5.0
>
>         Attachments: HADOOP-10581.patch, HADOOP-10581.patch, HADOOP-10581.patch
>
>
> The test fails on some machines that has variety of user groups.
> Initially the groups are extracted and stored in a set
> {{Set<String> groups = new LinkedHashSet<String> ();}}
> when the user groups are collected by calling the {{login.getGroupNames()}}, they are
stored in an array list
> {{String[] gi = login.getGroupNames();}}
> Because these groups are stored in different structure, there will be inconsistency in
the group count. Sets have unique list of keys while array list emits everything they have.
> {{assertEquals(groups.size(), gi.length);}} fails when there are more than one groups
with same name as the count in sets will be less than the arraylist.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message