Commit 1e5882b1 authored by Dave Syer's avatar Dave Syer

Make copy of job parameters before weeding out non-identifying ones

Fixes gh-1125
parent c04deec6
...@@ -153,7 +153,8 @@ public class JobLauncherCommandLineRunner implements CommandLineRunner, ...@@ -153,7 +153,8 @@ public class JobLauncherCommandLineRunner implements CommandLineRunner,
|| previousExecution.getStatus() == BatchStatus.FAILED) { || previousExecution.getStatus() == BatchStatus.FAILED) {
// Retry a failed or stopped execution // Retry a failed or stopped execution
jobParameters = previousExecution.getJobParameters(); jobParameters = previousExecution.getJobParameters();
for (Entry<String, JobParameter> parameter : additionals.entrySet()) { for (Entry<String, JobParameter> parameter : new HashMap<String, JobParameter>(
additionals).entrySet()) {
// Non-identifying additional parameters can be added to a retry // Non-identifying additional parameters can be added to a retry
if (!parameter.getValue().isIdentifying()) { if (!parameter.getValue().isIdentifying()) {
additionals.remove(parameter.getKey()); additionals.remove(parameter.getKey());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment