Skip to content

how can I get the all the items of the chunk after the the item skipped, Thanks! #4579

Closed Answered by fmbenhassine
kenshin614 asked this question in Q&A
Discussion options

You must be logged in to vote

It is not possible to get the entire chunk using a SkipListener, because this listener is called when the chunk is scanned item by item to determine the faulty one.

Since you need to get all the items in the chunk to re-process them in the next step, you can use an ItemWriteListener#onWriteError. This callback gives you access to the entire chunk when an error happens, and can be used to store items in a staging area that the next step can access. Have you considered this option?

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fmbenhassine
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #4501 on April 17, 2024 11:54.