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

Kan Zhang commented on HADOOP-6913:
-----------------------------------

The javadoc warnings are due to KerberosName.java and SecurityUtil.java and 
unrelated to this patch. TestBlockToken in HDFS has been failing because of 
this bug. It can serve as the test for this patch (once HDFS-1284 is committed).

> Circular initialization between UserGroupInformation and KerberosName
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-6913
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6913
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: security
>            Reporter: Kan Zhang
>            Assignee: Kan Zhang
>         Attachments: c6913-01.patch
>
>
> If the first call to UGI is UGI.setConfiguration(conf), it will try to 
> initialize UGI class. During this initialization, the code calls 
> KerberosName.setConfiguration(). KerberosName's static initializer will in 
> turn call UGI.isSecurityEnabled(). Since UGI hasn't been completely 
> initialized yet, isSecurityEnabled() will re-initialize UGI with a DEFAULT 
> conf. As a result, the original conf used in UGI.setConfiguration(conf) will 
> be overwritten by the DEFAULT conf.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to