You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Robert Kanter (JIRA)" <ji...@apache.org> on 2012/08/21 19:45:38 UTC

[jira] [Updated] (OOZIE-957) TestStatusTransitService and TestCoordKillXCommand are failing randomly; replace Thread.sleep()

     [ https://issues.apache.org/jira/browse/OOZIE-957?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Kanter updated OOZIE-957:
--------------------------------

    Description: 
{code}
Failed tests:   testCoordStatusTransitServicePaused(org.apache.oozie.service.TestStatusTransitService): expected:<RUNNINGWITHERROR> but was:<PAUSEDWITHERROR>
  testBundleStatusTransitServiceSucceeded2(org.apache.oozie.service.TestStatusTransitService): expected:<SUCCEEDED> but was:<RUNNING>
  testCoordStatusTransitServiceSuspendedWithError(org.apache.oozie.service.TestStatusTransitService): expected:<SUSPENDEDWITHERROR> but was:<SUSPENDED>

Tests in error: 
  testCoordKillSuccess1(org.apache.oozie.command.coord.TestCoordKillXCommand): The transaction has been rolled back.  See the nested exceptions for details on the errors that occurred.
{code}

We should replace all calls to Thread.sleep() in tests with a call to waitFor() so that oozie.test.waitfor.ratio will scale them (unless there is a specific reason not to).  

  was:
{code}
Failed tests:   testCoordStatusTransitServicePaused(org.apache.oozie.service.TestStatusTransitService): expected:<RUNNINGWITHERROR> but was:<PAUSEDWITHERROR>
  testBundleStatusTransitServiceSucceeded2(org.apache.oozie.service.TestStatusTransitService): expected:<SUCCEEDED> but was:<RUNNING>
  testCoordStatusTransitServiceSuspendedWithError(org.apache.oozie.service.TestStatusTransitService): expected:<SUSPENDEDWITHERROR> but was:<SUSPENDED>

Tests in error: 
  testCoordKillSuccess1(org.apache.oozie.command.coord.TestCoordKillXCommand): The transaction has been rolled back.  See the nested exceptions for details on the errors that occurred.
{code}

        Summary: TestStatusTransitService and TestCoordKillXCommand are failing randomly; replace Thread.sleep()  (was: TestStatusTransitService and TestCoordKillXCommand are failing randomly,)
    
> TestStatusTransitService and TestCoordKillXCommand are failing randomly; replace Thread.sleep()
> -----------------------------------------------------------------------------------------------
>
>                 Key: OOZIE-957
>                 URL: https://issues.apache.org/jira/browse/OOZIE-957
>             Project: Oozie
>          Issue Type: Bug
>          Components: tests
>    Affects Versions: trunk
>            Reporter: Alejandro Abdelnur
>            Assignee: Robert Kanter
>             Fix For: trunk
>
>         Attachments: org.apache.oozie.service.TestStatusTransitService-output.txt, org.apache.oozie.service.TestStatusTransitService.txt
>
>
> {code}
> Failed tests:   testCoordStatusTransitServicePaused(org.apache.oozie.service.TestStatusTransitService): expected:<RUNNINGWITHERROR> but was:<PAUSEDWITHERROR>
>   testBundleStatusTransitServiceSucceeded2(org.apache.oozie.service.TestStatusTransitService): expected:<SUCCEEDED> but was:<RUNNING>
>   testCoordStatusTransitServiceSuspendedWithError(org.apache.oozie.service.TestStatusTransitService): expected:<SUSPENDEDWITHERROR> but was:<SUSPENDED>
> Tests in error: 
>   testCoordKillSuccess1(org.apache.oozie.command.coord.TestCoordKillXCommand): The transaction has been rolled back.  See the nested exceptions for details on the errors that occurred.
> {code}
> We should replace all calls to Thread.sleep() in tests with a call to waitFor() so that oozie.test.waitfor.ratio will scale them (unless there is a specific reason not to).  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira