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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0.Beta7, 1.2.5.Final
    • 1.2.4.Final, 1.3.0.Beta6
    • jberet-core
    • None

      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.

              cfang@redhat.com Cheng Fang
              cfang@redhat.com Cheng Fang
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: