HADOOP-12792. TestUserGroupInformation#testGetServerSideGroups fails in chroot. Contributed by Eric Badger
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/6f03959e Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/6f03959e Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/6f03959e Branch: refs/heads/yarn-2877 Commit: 6f03959e4dc0bc11030fd7e30a025447a4d6948a Parents: c3641ed Author: Jason Lowe <jl...@apache.org> Authored: Wed Feb 10 21:53:08 2016 +0000 Committer: Jason Lowe <jl...@apache.org> Committed: Wed Feb 10 21:53:08 2016 +0000 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../java/org/apache/hadoop/security/TestUserGroupInformation.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/6f03959e/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 5a450bf..c3f817b 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1742,6 +1742,9 @@ Release 2.7.3 - UNRELEASED HADOOP-12772. NetworkTopologyWithNodeGroup.getNodeGroup() can loop infinitely for invalid 'loc' values (Kuhu Shukla via kihwal) + HADOOP-12792. TestUserGroupInformation#testGetServerSideGroups fails in + chroot (Eric Badger via jlowe) + Release 2.7.2 - 2016-01-25 INCOMPATIBLE CHANGES http://git-wip-us.apache.org/repos/asf/hadoop/blob/6f03959e/hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUserGroupInformation.java ---------------------------------------------------------------------- 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 6abe78c..1c37b08 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 @@ -221,7 +221,7 @@ public class TestUserGroupInformation { // get the groups pp = Runtime.getRuntime().exec(Shell.WINDOWS ? Shell.getWinUtilsPath() + " groups -F" - : "id -Gn"); + : "id -Gn " + userName); br = new BufferedReader(new InputStreamReader(pp.getInputStream())); String line = br.readLine();