From cad1436570698eab01d9de73c00e176eba065091 Mon Sep 17 00:00:00 2001 From: Jason Lowe Date: Wed, 10 Feb 2016 21:53:08 +0000 Subject: [PATCH] HADOOP-12792. TestUserGroupInformation#testGetServerSideGroups fails in chroot. Contributed by Eric Badger (cherry picked from commit 6f03959e4dc0bc11030fd7e30a025447a4d6948a) --- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../org/apache/hadoop/security/TestUserGroupInformation.java | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 3fb94af9ff8..fd17be6fb2c 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -1038,6 +1038,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 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 1d47d0c9323..5cfa29a34ee 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 @@ -218,7 +218,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();