Hadoop Common
  1. Hadoop Common
  2. HADOOP-8693

TestSecurityUtil fails intermittently with JDK7

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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).

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

        Issue Links

          Activity

          Trevor Robinson created issue -
          Trevor Robinson made changes -
          Field Original Value New Value
          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 adding static resolution for localhost.
          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)}}.
          Trevor Robinson made changes -
          Attachment HADOOP-8693.patch [ 12540801 ]
          Trevor Robinson made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Assignee Trevor Robinson [ scurrilous ]
          Trevor Robinson made changes -
          Component/s test [ 12311440 ]
          Eli Collins made changes -
          Labels java7
          Thomas Graves made changes -
          Attachment HADOOP-8693.patch [ 12541376 ]
          Thomas Graves made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Fix Version/s 0.23.3 [ 12320059 ]
          Fix Version/s 2.1.0-alpha [ 12321441 ]
          Fix Version/s 3.0.0 [ 12320357 ]
          Fix Version/s 2.2.0-alpha [ 12322473 ]
          Resolution Fixed [ 1 ]
          Arun C Murthy made changes -
          Fix Version/s 3.0.0 [ 12320357 ]
          Fix Version/s 2.1.0-alpha [ 12321441 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Suresh Srinivas made changes -
          Link This issue relates to HADOOP-9174 [ HADOOP-9174 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Development