Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-957

TestStatusTransitService and TestCoordKillXCommand are failing randomly; replace Thread.sleep()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.3.0
    • 3.3.0
    • tests
    • None

    Description

      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.
      

      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).

      Attachments

        1. OOZIE-957.patch
          29 kB
          Robert Kanter
        2. org.apache.oozie.service.TestStatusTransitService.txt
          2 kB
          Alejandro Abdelnur
        3. org.apache.oozie.service.TestStatusTransitService-output.txt
          423 kB
          Alejandro Abdelnur

        Activity

          People

            rkanter Robert Kanter
            tucu00 Alejandro Abdelnur
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: