hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-13066) UserGroupInformation.loginWithKerberos/getLoginUser is not thread-safe
Date Thu, 28 Apr 2016 20:33:13 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-13066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15262928#comment-15262928

Mingliang Liu commented on HADOOP-13066:

I'm wondering if it merits to improve the javadoc of the {{loginUserFromKeytab()}} method.

# To briefly document that, the logged-in user is process-global and there is no atomic semantic
between {{loginUserFromKeytab()}} and {{getLoginUser()}} calls.
# Add {{@see loginUserFromKeytabAndReturnUGI()}} for reference 

> UserGroupInformation.loginWithKerberos/getLoginUser is not thread-safe
> ----------------------------------------------------------------------
>                 Key: HADOOP-13066
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13066
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>            Reporter: Sergey Shelukhin
> When calling loginFromKerberos, a static variable is set up with the result. If someone
logs in as a different user from a different thread, the call to getLoginUser will not return
the correct UGI.

This message was sent by Atlassian JIRA

View raw message