You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by sh...@apache.org on 2017/09/08 18:28:31 UTC
[2/3] hadoop git commit: HDFS-10738. Fix
TestRefreshUserMappings.testRefreshSuperUserGroupsConfiguration test failure.
Contributed by Rakesh R.
HDFS-10738. Fix TestRefreshUserMappings.testRefreshSuperUserGroupsConfiguration test failure. Contributed by Rakesh R.
(cherry picked from commit 0f701f433dd3be233bf53e856864c82349e8274e)
(cherry picked from commit 7f1879abe642219fce0328a8e96c983601d202b0)
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/b40b8a0a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/b40b8a0a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/b40b8a0a
Branch: refs/heads/branch-2.7
Commit: b40b8a0addb92bd09e8fb084d6e89507775eb962
Parents: aa760e9
Author: Kihwal Lee <ki...@apache.org>
Authored: Mon Aug 22 11:04:03 2016 -0500
Committer: Konstantin V Shvachko <sh...@apache.org>
Committed: Fri Sep 8 10:52:58 2017 -0700
----------------------------------------------------------------------
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 4 ++++
.../security/TestRefreshUserMappings.java | 20 ++++++++++++--------
2 files changed, 16 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/hadoop/blob/b40b8a0a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index 3ce47d7..3213ad2 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -25,6 +25,10 @@ Release 2.7.5 - UNRELEASED
HDFS-9107. Prevent NN's unrecoverable death spiral after full GC (Daryn
Sharp via Colin P. McCabe)
+ HDFS-10738. Fix
+ TestRefreshUserMappings.testRefreshSuperUserGroupsConfiguration
+ test failure. (Rakesh R via kihwal)
+
Release 2.7.4 - 2017-08-04
INCOMPATIBLE CHANGES
http://git-wip-us.apache.org/repos/asf/hadoop/blob/b40b8a0a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/security/TestRefreshUserMappings.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/security/TestRefreshUserMappings.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/security/TestRefreshUserMappings.java
index ca67245..a924de7 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/security/TestRefreshUserMappings.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/security/TestRefreshUserMappings.java
@@ -149,9 +149,13 @@ public class TestRefreshUserMappings {
@Test
public void testRefreshSuperUserGroupsConfiguration() throws Exception {
final String SUPER_USER = "super_user";
- final String [] GROUP_NAMES1 = new String [] {"gr1" , "gr2"};
- final String [] GROUP_NAMES2 = new String [] {"gr3" , "gr4"};
-
+ final List<String> groupNames1 = new ArrayList<>();
+ groupNames1.add("gr1");
+ groupNames1.add("gr2");
+ final List<String> groupNames2 = new ArrayList<>();
+ groupNames2.add("gr3");
+ groupNames2.add("gr4");
+
//keys in conf
String userKeyGroups = DefaultImpersonationProvider.getTestProvider().
getProxySuperuserGroupConfKey(SUPER_USER);
@@ -176,12 +180,12 @@ public class TestRefreshUserMappings {
when(ugi1.getUserName()).thenReturn("userL1");
when(ugi2.getUserName()).thenReturn("userL2");
-
+
// set groups for users
- when(ugi1.getGroupNames()).thenReturn(GROUP_NAMES1);
- when(ugi2.getGroupNames()).thenReturn(GROUP_NAMES2);
-
-
+ when(ugi1.getGroups()).thenReturn(groupNames1);
+ when(ugi2.getGroups()).thenReturn(groupNames2);
+
+
// check before
try {
ProxyUsers.authorize(ugi1, "127.0.0.1");
---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org