Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-2889 Address remaining OYA issues
  3. OOZIE-2911

Re-add test testWfActionKillChildJob and adapt it to OYA

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 5.0.0b1
    • None
    • None

    Description

      Original test case was:

       public void testWfActionKillChildJob() throws Exception {
              String externalJobID = launchSleepJob(1000);
              String childId = launchSleepJob(1000000);
      
              WorkflowJobBean job = this.addRecordToWfJobTable(WorkflowJob.Status.KILLED, WorkflowInstance.Status.KILLED);
              WorkflowActionBean action = this.addRecordToWfActionTable(job.getId(), externalJobID, "1",
                      WorkflowAction.Status.KILLED, childId);
      
              new ActionKillXCommand(action.getId()).call();
              JobClient jobClient = createJobClient();
      
              final RunningJob mrJob = jobClient.getJob(JobID.forName(childId));
              waitFor(60 * 1000, new Predicate() {
                  public boolean evaluate() throws Exception {
                      return mrJob.isComplete();
                  }
              });
              assertEquals(mrJob.getJobState(), JobStatus.KILLED);
          }
      

      It was removed by OOZIE-1770's commit

      Attachments

        1. OOZIE-2911-001.patch
          5 kB
          Gézapeti
        2. OOZIE-2911-002.patch
          9 kB
          Gézapeti
        3. OOZIE-2911-003.patch
          20 kB
          Gézapeti
        4. OOZIE-2911-004.patch
          20 kB
          Gézapeti
        5. OOZIE-2911-005.patch
          21 kB
          Gézapeti
        6. OOZIE-2911-006.patch
          21 kB
          Gézapeti

        Activity

          People

            gezapeti Gézapeti
            pbacsko Peter Bacsko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: