Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-8693

TestSecurityUtil fails intermittently with JDK7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.23.3, 2.0.2-alpha
    • Component/s: test
    • Labels:
    • Environment:

      Description

      Failed tests: testBuildDTServiceName(org.apache.hadoop.security.TestSecurityUtil): expected:<[127.0.0.1]:123> but was:<[localhost]:123>
      testBuildTokenServiceSockAddr(org.apache.hadoop.security.TestSecurityUtil): expected:<[127.0.0.1]:123> but was:<[localhost]:123>

      Test methods run in an arbitrary order with JDK7. In this case, these tests fail because tests like testSocketAddrWithName (which run afterward with JDK6) are calling SecurityUtil.setTokenServiceUseIp(false).

        Attachments

        1. HADOOP-8693.patch
          1.0 kB
          Trevor Robinson
        2. HADOOP-8693.patch
          1.0 kB
          Thomas Graves

          Issue Links

            Activity

              People

              • Assignee:
                scurrilous Trevor Robinson
                Reporter:
                scurrilous Trevor Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: