Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4813

TestRMWebServicesDelegationTokenAuthentication.testDoAs fails intermittently

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0
    • 3.1.0, 2.10.0
    • resourcemanager
    • None
    • Reviewed

    Description

      -------------------------------------------------------
       T E S T S
      -------------------------------------------------------
      Running org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication
      Tests run: 8, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 11.627 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication
      testDoAs[0](org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication)  Time elapsed: 0.208 sec  <<< ERROR!
      java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8088/ws/v1/cluster/delegation-token
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1626)
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication$3.call(TestRMWebServicesDelegationTokenAuthentication.java:407)
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication$3.call(TestRMWebServicesDelegationTokenAuthentication.java:398)
      	at org.apache.hadoop.security.authentication.KerberosTestUtils$1.run(KerberosTestUtils.java:120)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:415)
      	at org.apache.hadoop.security.authentication.KerberosTestUtils.doAs(KerberosTestUtils.java:117)
      	at org.apache.hadoop.security.authentication.KerberosTestUtils.doAsClient(KerberosTestUtils.java:133)
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication.getDelegationToken(TestRMWebServicesDelegationTokenAuthentication.java:398)
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication.testDoAs(TestRMWebServicesDelegationTokenAuthentication.java:357)
      
      
      Results :
      
      Tests in error: 
        TestRMWebServicesDelegationTokenAuthentication.testDoAs:357->getDelegationToken:398 ยป IO
      
      Tests run: 8, Failures: 0, Errors: 1, Skipped: 0
      

      Attachments

        1. YARN-4813.000.patch
          4 kB
          Gergo Repas
        2. YARN-4813.001.patch
          1 kB
          Gergo Repas
        3. YARN-4813.002.patch
          1 kB
          Gergo Repas
        4. YARN-4813.003.patch
          2 kB
          Gergo Repas

        Activity

          People

            grepas Gergo Repas
            templedf Daniel Templeton
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: