Spring Batch | Read Count = Filter + Write?

2.1k views Asked by At

When running Spring Batch application, i see at some places in STEP_EXECUTION table, that

  `Read Count > Filter + Write`? 

Should not it be equal?

1

There are 1 answers

0
Michael Minella On

Not necessarily. If an item was skipped for example, it would have been read, but not filtered or written. For the record, the filter count is the count of times the ItemProcessor returned null which is different than an item being skipped due to a skippable exception being thrown.