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

Owen O'Malley commented on HADOOP-7625:
---------------------------------------

I don't think there is currently a case where a token will have a non-null 
renewer when setKind is called, but it could.

When isManaged, renew or cancel are called on a token, it first calls 
getRenewer. getRenewer returns the renewer field, if it is set or otherwise it 
finds the right kind of renewer based on the kind. When you change the kind, 
generally the discovered renewer will be different. Therefore, to avoid 
accidentally using the wrong renewer, it is safer to clear it when we set the 
kind.

> TestDelegationToken is failing in 205
> -------------------------------------
>
>                 Key: HADOOP-7625
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7625
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Owen O'Malley
>            Assignee: Owen O'Malley
>             Fix For: 0.20.205.0
>
>         Attachments: h-7625.patch, h-7625.patch
>
>
> After the patches on Friday, 
> org.apache.hadoop.hdfs.security.TestDelegationToken is failing.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to