Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9888

Allow reseting KerberosName in unit tests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.8.0, 2.7.4, 3.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      In some local environments, TestBalancer#testBalancerWithKeytabs may fail. Specifically, running itself passes, but running TestBalancer suite always fail. This is due to:

      1. Kerberos setup is done at the test case setup
      2. static variable KerberosName#defaultRealm is set when class initialization - before testBalancerWithKeytabs setup
      3. 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.

      Attachments

        1. HDFS-9888.01.patch
          3 kB
          Xiao Chen

        Issue Links

          Activity

            People

              xiaochen Xiao Chen
              xiaochen Xiao Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: