diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index d2fc6bc4691..3012bc90ce4 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -458,6 +458,10 @@ Release 2.5.0 - UNRELEASED HADOOP-10517. InputStream is not closed in two methods of JarFinder. (Ted Yu via cnauroth) + HADOOP-10581. TestUserGroupInformation#testGetServerSideGroups fails + because groups stored in Set and ArrayList are compared. + (Mit Desai via kihwal) + Release 2.4.1 - UNRELEASED INCOMPATIBLE CHANGES diff --git a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java index 614054f7c27..c347603e6de 100644 --- a/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java +++ b/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java @@ -17,7 +17,6 @@ package org.apache.hadoop.security; import org.apache.hadoop.conf.Configuration; -import org.apache.hadoop.fs.CommonConfigurationKeysPublic; import org.apache.hadoop.io.Text; import org.apache.hadoop.metrics2.MetricsRecordBuilder; import org.apache.hadoop.security.UserGroupInformation.AuthenticationMethod; @@ -36,9 +35,8 @@ import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Method; import java.security.PrivilegedExceptionAction; +import java.util.ArrayList; import java.util.Collection; -import java.util.LinkedHashSet; -import java.util.Set; import static org.apache.hadoop.fs.CommonConfigurationKeys.HADOOP_USER_GROUP_METRICS_PERCENTILES_INTERVALS; import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.HADOOP_SECURITY_AUTH_TO_LOCAL; @@ -208,7 +206,7 @@ public class TestUserGroupInformation { System.out.println(userName + ":" + line); - Set groups = new LinkedHashSet (); + ArrayList groups = new ArrayList (); String[] tokens = line.split(Shell.TOKEN_SEPARATOR_REGEX); for(String s: tokens) { groups.add(s);