Description
Suppose a Camel route that uses pollEnrich to enrich messages using a file consumer
<route id="timerToLog" trace="true"> <from uri="timer:foo?period=1000&repeatCount=1"/> <pollEnrich strategyRef="replaceAggregationStrategy" > <constant>file:target/pollEnrich?fileName=enrich.txt&readLock=markerFile</constant> </pollEnrich> <to uri="mock:result"/> </route>
While the file to enrich from is read correctly, the markerFile does not get deleted if a custom aggregationStrategy is configured. As a result the file remains locked and does not get moved to .camel/ folder and no further exchanges will be processed.