hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-10581) TestUserGroupInformation#testGetServerSideGroups fails because groups stored in Set and ArrayList are compared
Date Sun, 11 May 2014 00:09:23 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-10581?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994346#comment-13994346
] 

Hudson commented on HADOOP-10581:
---------------------------------

SUCCESS: Integrated in Hadoop-Yarn-trunk #560 (See [https://builds.apache.org/job/Hadoop-Yarn-trunk/560/])
Correcting the check-in mistake for HADOOP-10581. (kihwal: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1593360)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/UserGroupInformation.java
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java
HADOOP-10581. TestUserGroupInformation#testGetServerSideGroups fails. Contributed by Mit Desai.
(kihwal: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1593357)
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/CHANGES.txt
* /hadoop/common/trunk/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java


> 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