You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2019/05/28 14:51:00 UTC

[jira] [Commented] (OOZIE-3500) Flaky tests based on WorkflowTestCase

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

Hadoop QA commented on OOZIE-3500:
----------------------------------

PreCommit-OOZIE-Build started


> Flaky tests based on WorkflowTestCase
> -------------------------------------
>
>                 Key: OOZIE-3500
>                 URL: https://issues.apache.org/jira/browse/OOZIE-3500
>             Project: Oozie
>          Issue Type: Sub-task
>          Components: tests
>    Affects Versions: trunk
>            Reporter: Andras Salamon
>            Assignee: Andras Salamon
>            Priority: Major
>         Attachments: OOZIE-3500-01.patch
>
>
> Unit tests based on {{WorkflowTestCase}} are flaky. For instance {{TestWorkflow.testWorkflowWithStartAndEndCompletesSuccessfully}} failed here: https://builds.apache.org/job/PreCommit-OOZIE-Build/1120/
> {noformat}15:06:19 [ERROR] testWorkflowWithStartAndEndCompletesSuccessfully(org.apache.oozie.test.TestWorkflowRetries)  Time elapsed: 2.622 s  <<< FAILURE!
> 15:06:19 junit.framework.AssertionFailedError: expected:<RUNNING> but was:<SUCCEEDED>
> 15:06:19 	at junit.framework.Assert.fail(Assert.java:57)
> 15:06:19 	at junit.framework.Assert.failNotEquals(Assert.java:329)
> 15:06:19 	at junit.framework.Assert.assertEquals(Assert.java:78)
> 15:06:19 	at junit.framework.Assert.assertEquals(Assert.java:86)
> 15:06:19 	at junit.framework.TestCase.assertEquals(TestCase.java:253)
> 15:06:19 	at org.apache.oozie.test.WorkflowTestCase$WorkflowJobBuilder.start(WorkflowTestCase.java:241)
> 15:06:19 	at org.apache.oozie.test.WorkflowTestCase$WorkflowJobBuilder.access$200(WorkflowTestCase.java:161)
> 15:06:19 	at org.apache.oozie.test.WorkflowTestCase.submitAndAssert(WorkflowTestCase.java:51)
> 15:06:19 	at org.apache.oozie.test.TestWorkflow.testWorkflowWithStartAndEndCompletesSuccessfully(TestWorkflow.java:39)
> {noformat}
> It's not a good idea that {{WorkflowTestCase.start}} expects a {{RUNNING}} status, it's possible that the workflow is already finished at this point.



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