Claus Ibsen created CAMEL-26261:
-----------------------------------

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