Bugzilla – Bug 5602
BatchStatus in JobStatus should be always initialised
Last modified: 2014-01-09 15:18:04 UTC
JobStatus has two constructors, but only in the second one the BatchStatus is set to STARTING. I think, it should be STARTING in both cases.
Otherwise when I try to restart a Job that was interrupted by killing the JVM (SE modus), the following exception is thrown (because JobStatus#batchStatus is null):
java.lang.IllegalStateException: On restart, we didn't find an earlier batch status.
Thanks for the description. Yes, looks like an easy change.
In noting this, I'm also acknowledging we plan on actually delivering this fix but I don't have a target date yet.