You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2023/10/25 12:43:00 UTC

[jira] [Updated] (CAMEL-20046) camel-core: stream caching seems to be creating messages unnecessarily

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

Otavio Rodolfo Piske updated CAMEL-20046:
-----------------------------------------
    Attachment: Screenshot 2023-10-25 at 14.41.43.png

> camel-core: stream caching seems to be creating messages unnecessarily
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-20046
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20046
>             Project: Camel
>          Issue Type: Task
>          Components: camel-core
>            Reporter: Otavio Rodolfo Piske
>            Priority: Major
>         Attachments: Screenshot 2023-10-25 at 12.44.46.png, Screenshot 2023-10-25 at 14.41.43.png
>
>
> I am not entirely sure if this is a bug yet, but we should investigate. It seems that in some cases, the stream caching advice causes messages to created. 
> Flow: 
> 1. https://github.com/apache/camel/blob/camel-4.1.0/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/CamelInternalProcessor.java#L995-L998 
> 2. https://github.com/apache/camel/blob/camel-4.1.0/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java#L496-L498
> 3. And either one of 
> 3.1 https://github.com/apache/camel/blob/camel-4.1.0/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java#L413-L419
> 3. 2 or https://github.com/apache/camel/blob/camel-4.1.0/core/camel-support/src/main/java/org/apache/camel/support/AbstractExchange.java#L453-L461
> If there's no message, maybe it would be better to not create it just for reset. We should investigate this.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)