You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2012/07/11 19:29:34 UTC
[jira] [Updated] (CAMEL-5437) Add support for batch consumer's
empty messages to aggregator
[ https://issues.apache.org/jira/browse/CAMEL-5437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-5437:
-------------------------------
Affects Version/s: 2.9.2
Fix Version/s: 2.11
2.10.1
2.9.3
Issue Type: Bug (was: Improvement)
The empty message should have batch details so the EIPs can work with the message.
> 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: Bug
> Components: camel-core
> Affects Versions: 2.9.2, 2.10.0
> Reporter: Maxim Gordienko
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 2.9.3, 2.10.1, 2.11
>
>
> 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