[
https://issues.apache.org/jira/browse/HADOOP-10315?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15167507#comment-15167507
]
Ted Yu commented on HADOOP-10315:
---------------------------------
By default, Negative Cache is enabled.
>From API point of view, it is unclear whether the exception (if any) comes
>from negativeCache containing the user or, from retrieval from cache.
> Log the original exception when getGroups() fail in UGI.
> --------------------------------------------------------
>
> Key: HADOOP-10315
> URL: https://issues.apache.org/jira/browse/HADOOP-10315
> Project: Hadoop Common
> Issue Type: Bug
> Affects Versions: 0.23.10, 2.2.0
> Reporter: Kihwal Lee
> Assignee: Ted Yu
> Attachments: HADOOP-10315.v1.patch
>
>
> In UserGroupInformation, getGroupNames() swallows the original exception.
> There have been many occasions that more information on the original
> exception could have helped.
> {code}
> public synchronized String[] getGroupNames() {
> ensureInitialized();
> try {
> List<String> result = groups.getGroups(getShortUserName());
> return result.toArray(new String[result.size()]);
> } catch (IOException ie) {
> LOG.warn("No groups available for user " + getShortUserName());
> return new String[0];
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)