Hi Spring Batch team,

In our job, we have 3 steps configured.

Step1: Is storing 10 key value pairs to ExecutionContext
Step2: Is processing the business logic by using the key value pairs stored in step1.
Step3: Writing the records to output file.

The problem we are facing is, what ever values we are storing in execution Context are getting removed whenever step2 is restarted.
When I saw the Job_Execution_Context table, it is creating a new entry for every 2 key value pairs.
When Step2 is restarted, execution context is holding only first entry with first 2 key value pairs. The remaining key value pairs are getting removed from Job/StepExecutionContext.
I tried the same using ExecutionContextPromotionListener as specified in spring documentation, It is behaving the same way. I tried even storing the values in StepExecutionContext of Step2, still loosing the values . IS there any workaround for this to get all the values stored in Job/StepExecuctionContext back when restarting the same step?

Any help would be appreciated.

Thanks,
Lavanya