简体   繁体   中英

Mule Batch Max Failures not working

I'm using mule batch flow to process the files. As per the requirement I should stop processing the batch step for further processing after 10 failures. So I've configured max-failed-records="10" but still I see around 99 failures in my logger that is kept in complete phase. The file which the app recieves will have around 8657 rows. so loaded records will be 8657 records.

Logger in complete phase:

 <logger message="#['Failed Records'+payload.failedRecords]" level="INFO" doc:name="Logger"/>

Below image is my flow: 在此处输入图片说明

Its default behavior of the mule. As per Batch Documentation Mule loads 1600 records at once (16 threads x 100 records per block). Though max failure is set 10 it will process all loaded records, but it wont load next record blocks as max failure limit is reached.

Hope this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM