[
https://issues.apache.org/jira/browse/OOZIE-957?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13439198#comment-13439198
]
Virag Kothari commented on OOZIE-957:
-------------------------------------
Agree with tucu, this can be committed as OOZIE-960 will complement it
> 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: OOZIE-957.patch,
> 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