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

TestSecurityUtil fails intermittently with JDK7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.23.3, 2.0.2-alpha
    • test

    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
          Thomas Graves
        2. HADOOP-8693.patch
          1.0 kB
          Trevor Robinson

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: