Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14992

(7.1.z) 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
    • 7.1.4.CR1, 7.1.4.GA
    • None
    • Batch
    • 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.

              spyrkob Bartosz Spyrko-Smietanko
              spyrkob Bartosz Spyrko-Smietanko
              Peter Mackay Peter Mackay
              Peter Mackay Peter Mackay
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: