[ 
https://issues.apache.org/jira/browse/HDFS-9888?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Zhe Zhang updated HDFS-9888:
----------------------------
          Resolution: Fixed
        Hadoop Flags: Reviewed
       Fix Version/s: 3.0.0
    Target Version/s: 3.0.0
              Status: Resolved  (was: Patch Available)

Thanks Xiao. I just committed the patch to trunk. Also updated the JIRA title 
since we added a public method to non-test code.

> Allow reseting KerberosName in unit tests
> -----------------------------------------
>
>                 Key: HDFS-9888
>                 URL: https://issues.apache.org/jira/browse/HDFS-9888
>             Project: Hadoop HDFS
>          Issue Type: Test
>            Reporter: Xiao Chen
>            Assignee: Xiao Chen
>            Priority: Minor
>             Fix For: 3.0.0
>
>         Attachments: HDFS-9888.01.patch
>
>
> In some local environments, {{TestBalancer#testBalancerWithKeytabs}} may 
> fail. Specifically, running itself passes, but running {{TestBalancer}} suite 
> always fail. This is due to:
> # Kerberos setup is done at the test case setup
> # static variable {{KerberosName#defaultRealm}} is set when class 
> initialization - before {{testBalancerWithKeytabs}} setup
> # local default realm is different than test case default realm
> This is mostly an environment specific problem, but let's not make such 
> assumption in the test.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to