Details
-
Bug
-
Resolution: Done
-
Major
-
1.3.0.Final
-
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.