Skip to content

Missing information about error handling in ChunkListeners #4384

Closed
@fmbenhassine

Description

@fmbenhassine
Contributor

Chunk listeners are not designed to throw exceptions. Exceptions must be handled in the implementation or the step will terminate. This is mentioned in the javadoc of TerminateOnExceptionChunkListenerDelegate, but this class is private.

The section about ChunkListeners in the reference documentation should be updated with this important detail.


References:

Activity

injae-kim

injae-kim commented on Nov 17, 2023

@injae-kim
Contributor

Hi @fmbenhassine ! to resolve this issue, I made PR #4490 with proper unit test.
Can you simply check my PR? thanks! 🙇

added this to the 5.2.0-M1 milestone on Apr 30, 2024
added a commit that references this issue on Apr 30, 2024
74c0b27
added a commit that references this issue on May 20, 2024
6efeed7
added a commit that references this issue on Feb 2, 2025
5ec7058
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Participants

      @fmbenhassine@injae-kim

      Issue actions

        Missing information about error handling in ChunkListeners · Issue #4384 · spring-projects/spring-batch