Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-418

Possible NPE while awaiting job execution termination

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 1.4.0.Alpha1
    • 1.3.0.Final
    • jberet-core
    • None

    Description

      In org.jberet.runtime.JobExecutionImpl#awaitTermination, the variable jobTerminationLatch could still be null despite the null check, since this method is typically invoked by the batch client running in different thread than the main job execution thread. The variable jobTerminationLatch is accessed by the batch client thread, and is also updated by the main job execution thread at the end of job execution.

      https://github.com/jberet/jsr352/blob/c0991d2c8b0471896956599428cbe1a90ef699f7/jberet-core/src/main/java/org/jberet/runtime/JobExecutionImpl.java#L137

      Attachments

        Activity

          People

            cfang@redhat.com Cheng Fang
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: