Maxim Gordienko created CAMEL-5437:
--------------------------------------
Summary: Add support for batch consumer's empty messages to
aggregator
Key: CAMEL-5437
URL: https://issues.apache.org/jira/browse/CAMEL-5437
Project: Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 2.10.0
Reporter: Maxim Gordienko
Priority: Minor
Aggregator supports completion based on the batch consumer data (option
completionFromBatchConsumer)
Some batch consumers (eg. File) can send an empty message if there is no input
(option sendEmptyMessageWhenIdle for File consumer).
Aggregator is unable to handle such messages properly - the messages are
aggregated, but Aggregator never completes.
Here is the relevant fragment from AggregateProcessor.isCompleted(String,
Exchange)
int size = exchange.getProperty(Exchange.BATCH_SIZE, 0, Integer.class);
if (size > 0 && batchConsumerCounter.intValue() >= size) {
....
}
Please add support for this combination of options.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira