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

Testcases failing intermittently where coordinator jobs are in catchup mode

    XMLWordPrintableJSON

Details

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

    Description

      When the coordinator jobs are in catchup mode, the CoordTriggerService may pick those jobs and start materializing new actions for it. This may cause conflict with the test case which is forcing a action to be added.

      For. eg., in most of the test cases, there is something like below where a coordinator job and coordinator action are added.

      int actionNum = 1;
              CoordinatorJobBean job = addRecordToCoordJobTable(CoordinatorJob.Status.RUNNING, false, false);
              CoordinatorActionBean action = addRecordToCoordActionTable(job.getId(), actionNum, CoordinatorAction.Status.WAITING, "coord-action-get.xml", 0);
      

      The materializationtrigger service may pick the RUNNING coord job and start adding actions for it. This will cause the 'addRecordToCoordActionTable' to fail as the action is already inserted in DB.

      Below are some links where this is happening:

      https://builds.apache.org/job/oozie-trunk-precommit-build/71/testReport/junit/org.apache.oozie.executor.jpa/TestCoordActionsPendingFalseStatusCountGetJPAExecutor/testCoordActionPendingFalseStatusCountGet/

      https://builds.apache.org/job/oozie-trunk-precommit-build/86/testReport/junit/org.apache.oozie.executor.jpa/TestCoordJobGetActionsJPAExecutor/testCoordActionGet/

      https://builds.apache.org/job/oozie-trunk-precommit-build/85/testReport/junit/org.apache.oozie.executor.jpa/TestCoordJobGetReadyActionsJPAExecutor/testCoordActionGet/

      Also, most of the log information for this failing test cases is lost as LocalOozie is used to start services. LocalOozie should not be used in test cases unless required.

      Attachments

        1. OOZIE-989.patch
          39 kB
          Virag Kothari
        2. OOZIE-989.patch
          40 kB
          Virag Kothari
        3. OOZIE-989.patch
          38 kB
          Virag Kothari

        Activity

          People

            virag Virag Kothari
            virag Virag Kothari
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: