Skip to content

ExecutionContext not loaded from BATCH_STEP_EXECUTION_CONTEXT table? #5117

@ruudkenter

Description

@ruudkenter

In Spring Batch 5.2.x the StepExecution returned from the SimpleJobExplorer returned a fully populated StepExecution, including the ExecutionContext.

Spring Batch 6.0.0, is using a JobRepository for the same task fetching the StepExecution, however, that doesn't seem to populate the ExecutionContext for the StepExecution. It ultimately delegates to: JdbcStepExecutionDao without loading the ExecutionContext from the BATCH_STEP_EXECUTION_CONTEXT table. Failing my remote partitioned batch job.

Not sure if this is intentional and I am missing out on something, but to me this seems to be an issue.

Demonstration of the issue.

NOTE: It does work when you switch to using ResourcelessJobRepository.

Regards
Ruud

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions