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 (Commented) (JIRA)" <ji...@apache.org> on 2012/03/26 14:44:28 UTC

[jira] [Commented] (CAMEL-4160) MockEndpoint - Add options to only keep X first / last messages

    [ https://issues.apache.org/jira/browse/CAMEL-4160?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13238341#comment-13238341 ] 

Claus Ibsen commented on CAMEL-4160:
------------------------------------

We should check whether the DataSet component should benefit from this, as its likely dont need to retain messages. But I will have to double check.
                
> MockEndpoint - Add options to only keep X first / last messages
> ---------------------------------------------------------------
>
>                 Key: CAMEL-4160
>                 URL: https://issues.apache.org/jira/browse/CAMEL-4160
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.0
>
>
> If you use mock endpoints they keep a copy of the exchange send to it. But if you test using a lot of messages (eg lets say 500.000) then that takes up much memory.
> So in some cases it may be desireable to just say only keep X number of messages (keepFirst=10&keepLast=10) to keep the first 10 and last 10 messages.
> The name of the options could maybe be something more appropriate.
> When using these options there may be some assertions that is not possible. But thats an acceptable tradeoff when you just want to use mocks to say, okay I expect at least 250000 messages here. And the first message should be like this, and the last message should be like that. etc.

--
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