glassfish
  1. glassfish
  2. GLASSFISH-20093

[Batch RI] Halfway Terminated Job Executions

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_dev
    • Fix Version/s: 4.0_dev
    • Component/s: batch
    • Labels:
      None

      Description

      Tested with latest nightly b82.

      Steps:

      1) Started a long running Job.
      2) Killed the Job Process(here i killed Glassfish Process). Now the Job Execution killed/terminated halfway with status (STARTED)

      Is getRunningExecutions() always returns the Job executions with state STARTED or really returns the actual running jobs?

      If i try to abandon the halfway terminated job it says javax.batch.operations.JobExecutionIsRunningException

      If i try to stop using joboperator.stop() the halfway terminated job then it says javax.batch.operations.JobExecutionNotRunningException

      The user might actually get confused because of contradictory exceptions in this exceptional case

        Activity

        Hide
        ScottKurz added a comment - - edited

        I made a fix which I believe will address this but I'll let you verify. We are delivering now in jbatch 1.0-b23, so I think that should make it into the b83.

        Show
        ScottKurz added a comment - - edited I made a fix which I believe will address this but I'll let you verify. We are delivering now in jbatch 1.0-b23, so I think that should make it into the b83.

          People

          • Assignee:
            ScottKurz
            Reporter:
            arunkumar_s
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: