Details
Description
CommunicationException and NamingException are not logged in LdapGroupsMapping.getGroups().
LdapGroupsMapping.java
public synchronized List<String> getGroups(String user) throws IOException { List<String> emptyResults = new ArrayList<String>(); // ... try { return doGetGroups(user); } catch (CommunicationException e) { LOG.warn("Connection is closed, will try to reconnect"); } catch (NamingException e) { LOG.warn("Exception trying to get groups for user " + user + ": " + e.getMessage()); return emptyResults; } //... return emptyResults; }
It is not possible to understand LDAP level failures.
Attachments
Attachments
Issue Links
- is related to
-
HADOOP-12838 Add metrics for LDAP-specific group mapping resolution time
- Open
- links to