HADOOP-10581. TestUserGroupInformation#testGetServerSideGroups fails. Contributed by Mit Desai.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1593357 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
280c764f54
commit
624f8b0832
@ -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
|
||||
|
@ -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.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 void testGetServerSideGroups() throws IOException,
|
||||
|
||||
System.out.println(userName + ":" + line);
|
||||
|
||||
Set<String> groups = new LinkedHashSet<String> ();
|
||||
ArrayList<String> groups = new ArrayList<String> ();
|
||||
String[] tokens = line.split(Shell.TOKEN_SEPARATOR_REGEX);
|
||||
for(String s: tokens) {
|
||||
groups.add(s);
|
||||
|
Loading…
Reference in New Issue
Block a user