camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-5437) Add support for batch consumer's empty messages to aggregator
Date Thu, 12 Jul 2012 07:00:46 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-5437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-5437.
--------------------------------

    Resolution: Fixed
    
> 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

        

Mime
View raw message