You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Peter Bacsko (JIRA)" <ji...@apache.org> on 2019/04/08 13:57:00 UTC
[jira] [Created] (YARN-9461)
TestRMWebServicesDelegationTokenAuthentication.testCancelledDelegationToken
fails with HTTP 400
Peter Bacsko created YARN-9461:
----------------------------------
Summary: TestRMWebServicesDelegationTokenAuthentication.testCancelledDelegationToken fails with HTTP 400
Key: YARN-9461
URL: https://issues.apache.org/jira/browse/YARN-9461
Project: Hadoop YARN
Issue Type: Bug
Components: resourcemanager, test
Reporter: Peter Bacsko
Assignee: Peter Bacsko
The test {{TestRMWebServicesDelegationTokenAuthentication.testCancelledDelegationToken}} sometimes fails with the following error:
{noformat}
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)
{noformat}
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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org