I have been using Spring Batch and so far everything has run pretty well. Lately though, we have been getting issues related to the step execution context. The error is below:
Encountered an error saving batch meta data for step generatePlacementSupplement in job vodPlacementJob. This job is now in an unknown state and should not be restarted. org.springframework.dao.DataIntegrityViolationException: PreparedStatementCallback; SQL [UPDATE BATCH_STEP_EXECUTION_CONTEXT SET SHORT_CONTEXT = ?, SERIALIZED_CONTEXT = ? WHERE STEP_EXECUTION_ID = ?]; ERROR: invalid input syntax for type oid
I have tried changing the Spring Batch execution context tables to a TEXT data type, as well as changing the VARCHAR limit to 10k instead of 2500. Neither of these approaches seemed to have fixed whatever the problem is. I think it's a space issue, as we are passing quite a bit of parameters, but adding more space didn't fix it.
Would moving away from the Postgres DB and use an in-memory solution be the best course?