Uploaded image for project: 'JBeret'
  1. JBeret
  2. JBERET-351

Step metrics WRITE_COUNT does not correctly reflect the number of items to be written

    Details

      Description

      ItemWriteListener's beforeWrite method can modify, add, or remove elements of the output list. Step metrics should correctly reflect the number of items that are actually written.

      The current impl of ChunkRunner class does not account for the modification, removal or addition in ItemWriteListener when tracking WRITE_COUNT metrics.

      Note that this problem exists only when an ItemWriteListener's beforeWrite method changes the size of the output list.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  cfang Cheng Fang
                  Reporter:
                  cfang Cheng Fang
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: