Skip counter in ItemWriter #4507
Unanswered
peterhalachan
asked this question in
Q&A
Replies: 1 comment
-
calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am facing an issue with skip count for a step which I have implemented. I have an item writer which sends messages to Kafka. In case an exception occurs in this writer the item is removed from the chunk and I expect that the skip count gets updated but instead of that all the objects which are passed to the write method are recorded as successful.
In case I rethrow the exception in the catch block I get the correct count but I noticed that more messages are sent to Kafka than it is expected and also the processing time takes longer
Is there a way of updating the skip count?
I am using spring batch version 5.0.3
My item writer
Listener which reports the counts
and my step configuration
Beta Was this translation helpful? Give feedback.
All reactions