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 "Prabhu Joseph (JIRA)" <ji...@apache.org> on 2019/03/25 09:39:00 UTC
[jira] [Commented] (YARN-9405)
TestYarnNativeServices#testExpressUpgrade fails intermittent
[ https://issues.apache.org/jira/browse/YARN-9405?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16800518#comment-16800518 ]
Prabhu Joseph commented on YARN-9405:
-------------------------------------
TestCase waits for service state to be STABLE after {{actionUpgradeExpress}}. It fails if test case thread is faster than {{ServiceManager}} Dispatcher handles {{StartUpgradeTransition}} and getStatus is returned with STABLE v1 before ServiceManager sets state to EXPRESS_UPGRADING.
{code}
2019-03-25 13:44:05,140 INFO [IPC Server handler 0 on default port 51338] service.ClientAMService (ClientAMService.java:upgrade(174)) - Upgrading service to version v2 by pjoseph (auth:SIMPLE)
2019-03-25 13:44:05,161 INFO [Component dispatcher] service.ServiceManager (ServiceManager.java:setServiceState(504)) - [SERVICE] spec state changed from STABLE -> EXPRESS_UPGRADING
{code}
It can be fixed by checking service state transitions to EXPRESS_UPGRADING before checking for STABLE.
> TestYarnNativeServices#testExpressUpgrade fails intermittent
> ------------------------------------------------------------
>
> Key: YARN-9405
> URL: https://issues.apache.org/jira/browse/YARN-9405
> Project: Hadoop YARN
> Issue Type: Test
> Components: yarn-native-services
> Affects Versions: 3.2.0
> Reporter: Prabhu Joseph
> Assignee: Prabhu Joseph
> Priority: Major
> Attachments: YARN-9405-001.patch
>
>
> TestYarnNativeServices#testExpressUpgrade fails intermittent
> {code}
> org.junit.ComparisonFailure: version mismatch expected:<v[2]> but was:<v[1]>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at org.apache.hadoop.yarn.service.TestYarnNativeServices.testExpressUpgrade(TestYarnNativeServices.java:445)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
> at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
> at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
> at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
> at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:298)
> at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:292)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at java.lang.Thread.run(Thread.java:748)
> {code}
--
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