New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE in retry after a partitioned chunk #69
Comments
We currently check for isRestart via
|
…e current step is restart instead of checking if the current job execution is restart).
…ed chunk; these tests verify partition mapper override true and restart.
Thanks for the fix, (The workaround we provided works but required overnumerous database access to get previous start status in some mappers, that will impact performances I guess) |
Thanks for reporting this issue. The fix will be in the next release (1.3.0.Beta1). |
Created a shadow JIRA issue for EAP 7.0.2, which will include jberet-core 1.2.1. |
… after a partitioned chunk.
… if the current step is restart instead of checking if the current job execution is restart).
…titioned chunk; these tests verify partition mapper override true and restart.
(targets jberet 1.2.0.final)
We have a partitioned chunk step (let's say step2) following another partitioned chunk step "step1" (using the same mapper but I don't think this relevant). The mapper is in override = false mode.
When a step1 partition fails and the job is restarted, the step1 finishes (the only remaining partition is completed) but when the step2 begins, we get the NPE provided in [1].
In StepExecutionRunner.beginPartition(), the decision to read again the previous context of the step is given by :
final boolean isRestartNotOverride = isRestart && !isOverride;
but in our case, the step2 returns a null context as it has never been launched.
A workaround we use successfully (in the partitions mapper) :
Thanks, KUTGW
[1]
The text was updated successfully, but these errors were encountered: