Repository: hadoop Updated Branches: refs/heads/branch-2 96befde48 -> 304cc1a85
HADOOP-14743. CompositeGroupsMapping should not swallow exceptions. Contributed by Wei-Chiu Chuang. (cherry picked from commit a8b75466b21edfe8b12beb4420492817f0e03147) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/304cc1a8 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/304cc1a8 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/304cc1a8 Branch: refs/heads/branch-2 Commit: 304cc1a8569cfe869a69208784cdd870eed81969 Parents: 96befde Author: Wei-Chiu Chuang <[email protected]> Authored: Thu Aug 10 09:35:27 2017 -0700 Committer: Wei-Chiu Chuang <[email protected]> Committed: Thu Aug 10 09:36:21 2017 -0700 ---------------------------------------------------------------------- .../java/org/apache/hadoop/security/CompositeGroupsMapping.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/304cc1a8/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/CompositeGroupsMapping.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/CompositeGroupsMapping.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/CompositeGroupsMapping.java index b8cfdf7..b762df2 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/CompositeGroupsMapping.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/CompositeGroupsMapping.java @@ -74,7 +74,9 @@ public class CompositeGroupsMapping try { groups = provider.getGroups(user); } catch (Exception e) { - //LOG.warn("Exception trying to get groups for user " + user, e); + LOG.warn("Unable to get groups for user {} via {} because: {}", + user, provider.getClass().getSimpleName(), e.toString()); + LOG.debug("Stacktrace: ", e); } if (groups != null && ! groups.isEmpty()) { groupSet.addAll(groups); --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
