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

TestRMWebServicesDelegationTokenAuthentication.testCancelledDelegationToken fails with HTTP 400

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.0
    • Component/s: resourcemanager, test
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The test TestRMWebServicesDelegationTokenAuthentication.testCancelledDelegationToken sometimes fails with the following error:

      java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:8088/ws/v1/cluster/delegation-token
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication.cancelDelegationToken(TestRMWebServicesDelegationTokenAuthentication.java:462)
      	at org.apache.hadoop.yarn.server.resourcemanager.webapp.TestRMWebServicesDelegationTokenAuthentication.testCancelledDelegationToken(TestRMWebServicesDelegationTokenAuthentication.java:283)
      

      The problem is that for whatever reason, Jetty seems to execute the token cancellation REST call twice. First we get HTTP 200 OK, but the second request fails with HTTP 400 Bad Request.

      The MockRM instance is static. Something could be a problem in this class and it turned out that using separate MockRM instances solves the flakiness.

        Attachments

        1. YARN-9461-001.patch
          3 kB
          Peter Bacsko

          Issue Links

            Activity

              People

              • Assignee:
                pbacsko Peter Bacsko
                Reporter:
                pbacsko Peter Bacsko
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: