Announcement Announcement Module
Collapse
No announcement yet.
@AfterChunk listeners not called - Batch 2.1.8 Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • @AfterChunk listeners not called - Batch 2.1.8

    I had a method annotated with @AfterChunk but it was never getting called. I did a usage search (with IntelliJ) and the only reference that I saw to AfterChunk was in StepListenerMetaData line 61

    Code:
    AFTER_CHUNK("afterChunk", "after-chunk-method", AfterChunk.class, ChunkListener.class),
    The only reference to AFTER_CHUNK was in the same class

    Code:
        public static ListenerMetaData[] taskletListenerMetaData() {
            return new ListenerMetaData[] {BEFORE_CHUNK, AFTER_CHUNK};
        }
    There were no usages of taskletListenerMetaData().

    This would also affect the XML-based after-chunk-method attribute and the corresponding beforeChunk configuration of course.

    Seems like a bug.

    Attached is a zip with three files that recreate the problem. I would expect to see
    Code:
    ....
    read 4 wrote 4
    but I don't see any dots. Maybe there's some magic I'm missing.
Working...
X