HADOOP-14743. CompositeGroupsMapping should not swallow exceptions. Contributed by Wei-Chiu Chuang.
This commit is contained in:
parent
54356b1e83
commit
a8b75466b2
@ -74,7 +74,9 @@ public synchronized List<String> getGroups(String user) throws IOException {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user