Sandeep Jindal
Sandeep Jindal

Reputation: 15368

Spring Batch | Read Count = Filter + Write?

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

  `Read Count > Filter + Write`? 

Should not it be equal?

Upvotes: 2

Views: 2318

Answers (1)

Michael Minella
Michael Minella

Reputation: 21483

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.

Upvotes: 3

Related Questions