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

Allow reseting KerberosName in unit tests

    Details

    • Type: Test
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha1
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: