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

Andras Salamon commented on OOZIE-3243:
---------------------------------------

sleep(100) was not enough of slower computers. Easiest solution would be to 
increase 100 to 200, but instead of this I'm using the same solution which 
fixed several Oozie flaky tests before: using {{waitFor}} method to wait for up 
to 5 seconds if necessary, but continuously check the status of the job, so 
don't wait if the job is already killed.

> Flaky test TestCoordActionsKillXCommand#testActionKillCommandDate
> -----------------------------------------------------------------
>
>                 Key: OOZIE-3243
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3243
>             Project: Oozie
>          Issue Type: Sub-task
>            Reporter: Peter Bacsko
>            Assignee: Andras Salamon
>            Priority: Major
>         Attachments: OOZIE-3243-01.patch
>
>
> The testcase TestCoordActionsKillXCommand#testActionKillCommandDate 
> occasionally fails with the following error:
> {noformat}
> junit.framework.AssertionFailedError: expected:<RUNNING> but was:<KILLED>
>       at 
> org.apache.oozie.command.coord.TestCoordActionsKillXCommand.testActionKillCommandDate(TestCoordActionsKillXCommand.java:131)
> {noformat}



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

Reply via email to