[ 
https://issues.apache.org/jira/browse/OOZIE-3512?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16864922#comment-16864922
 ] 

duan xiong commented on OOZIE-3512:
-----------------------------------

[~asalamon74],I have try to reproduce it locally.I think this problem caused by 
the container resource for example memory/core number.Because In XTestCase
{code:java}
// code placeholder
private static final int DEFAULT_YARN_TIMEOUT = 60_000;{code}
When I set this TIMEOUT = 1000, It can reproduce. But In 60_000, It is  no  
problem. So I think the program is good.

So In some machine It shows failed , Just because the application in ACCEPTED 
State When the time out. If we give it more time, Maybe the application can run 
success. 

> Flaky test TestActionStartXCommand.testActionWithEscapedStringAndCDATA
> ----------------------------------------------------------------------
>
>                 Key: OOZIE-3512
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3512
>             Project: Oozie
>          Issue Type: Sub-task
>          Components: tests
>    Affects Versions: trunk
>            Reporter: Andras Salamon
>            Assignee: duan xiong
>            Priority: Major
>
> {{TestActionStartXCommand.testActionWithEscapedStringAndCDATA}} is flaky, 
> sometimes (for instance: 
> https://issues.apache.org/jira/browse/OOZIE-3470?focusedCommentId=16817901&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16817901
>  ) it fails with the following error message:
> {noformat}junit.framework.AssertionFailedError: YARN App state for app 
> application_1559489642789_0018 expected:<FINISHED> but was:<ACCEPTED>
>       at junit.framework.Assert.fail(Assert.java:57)
>       at junit.framework.Assert.failNotEquals(Assert.java:329)
>       at junit.framework.Assert.assertEquals(Assert.java:78)
>       at junit.framework.TestCase.assertEquals(TestCase.java:244)
>       at 
> org.apache.oozie.test.XTestCase.waitUntilYarnAppDoneAndAssertSuccess(XTestCase.java:1358)
>       at 
> org.apache.oozie.command.wf.TestActionStartXCommand.testActionWithEscapedStringAndCDATA(TestActionStartXCommand.java:235)
> ...
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to