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

Claus Ibsen resolved CAMEL-26261.
---------------------------------
    Resolution: Fixed

Fixed by https://github.com/apache/camel/pull/28952, merged to main as 
2883080b73c90d85dadf9f14edb97b50808e6f92.

_Claude Code on behalf of davsclaus_

> camel-alibaba-oss - the consumer reads every object fully into a byte[], so 
> large objects need as much heap as their size
> -------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-26261
>                 URL: https://issues.apache.org/jira/browse/CAMEL-26261
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Claus Ibsen
>            Assignee: Andrea Cosentino
>            Priority: Minor
>             Fix For: 4.24.0
>
>
> Found while adding the catalog body types of alibaba-oss (CAMEL-24961, PR 
> #28409).
> h4. 1. The consumer reads every object into memory
> {{OSSConsumer}} (main 2a465aa4814c, line 216) reads the object content with 
> {{IOUtils.toByteArray}} before the exchange is created, so every object is 
> held in memory at once, and a large object can exhaust the heap. There is no 
> option to stream the content. Checked on 4.24.0-SNAPSHOT with a Mockito 
> client.
> Proposed: add an option to set the content as an InputStream (closed on 
> exchange completion), as camel-aws2-s3 does.
> _Claude Code on behalf of davsclaus_



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to