Skip to content

chunk-oriented-processing and completion-policy inconsistent with documentation #1629

Closed
@spring-projects-issues

Description

@spring-projects-issues

Jimmy Praet opened BATCH-1967 and commented

https://docs.spring.io/spring-batch/docs/current/reference/html/index-single.html#chunkOrientedProcessing
https://docs.spring.io/spring-batch/docs/current/reference/html/index-single.html#stoppingAJobManuallyForBusinessReasons

According to the documentation chunk-oriented-processing has a (read+process) loop until the completion-policy is reached, and then the chunk is handed to the ItemWriter. In actuality it is a read-loop until the completion-policy is reached (ChunkProvider), and then the chunk is handed to the ChunkProcessor that has a process-loop after which the chunk is handed to the ItemWriter.

This means it is not possible to use a completion-policy to for example commit your chunk after 100 records are processed, or 1 minute has passed (whichever comes first).


Reference URL: http://forum.springsource.org/showthread.php?116507-chunk-completion-policy

2 votes, 2 watchers

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions