Skip functionality is not working properly in MongoItemReader scenario [BATCH-2503] #1101
Labels
in: core
related-to: fault-tolerance
status: waiting-for-triage
Issues that we did not analyse yet
type: bug
nishant ranjan opened BATCH-2503 and commented
Skip exception class functionality is not working properly when MongoItemreader is being used.
Example:
<skippable-exception-classes>
<include class="org.springframework.core.convert.ConversionFailedException" />
</skippable-exception-classes>
Suppose 20 rows are fetched from MongoDB and at row number 15 configurable exception ".ConversionFailedException" is thrown from a custom class derived from Converter, (MessageContextReadConverter implements Converter<DBObject, MessageContext>)
. MessageContextReadConverter is set during mongoTemplate creation,.
Now, exception thrown at row number 15 is received in custom readlistener (public void onReadError(Exception ex)).
Issues:
Analysis:
MongoItemreader works on paging mechanism therefore skip functionality is not working.
Solution:
Kindly correct me if above analysis is in-correct.
I am implementing cursor based reader but again its not a solution as combination of cursor + paging is required.
Affects: 3.0.7
The text was updated successfully, but these errors were encountered: