Bug 4648 - Do chunk ItemXXXXListener onXXXXError get called for skip/retried exceptions?
Do chunk ItemXXXXListener onXXXXError get called for skip/retried exceptions?
Status: RESOLVED FIXED
Product: jbatch
Classification: Unclassified
Component: source
1
PC Windows
: P5 enhancement
: ---
Assigned To: cvignola
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-02-06 13:16 UTC by ScottKurz
Modified: 2013-03-01 18:45 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ScottKurz 2013-02-06 13:16:52 UTC
E.g. does  ItemReadListener onReadError get called for skip/retried exceptions on the read?  Or only for non-skipped/retried exceptions?

From the pseudocode at the end of the spec, it seems the answer is "yes", as in Sec. 8.8 you show:

iv.	<->[ItemReadListener.onReadError] // thread A
v.	<->[SkipListener.onSkipReadItem] // thread A

The equivalent pseudocode for retry listeners doesn't show the onXXXError method getting called though.  

If we couldn't raise the issue I'd assume it did get called, but figured we'd ask.
Comment 1 cvignola 2013-03-01 18:45:56 UTC
Yes, the intention for exceptions is that all applicable listeners receive control (e.g. both read and skip listener).  The read/process/write listeners are missing in the retry schematic.  That will be fixed in PFD v1.5.