Return-Path: X-Original-To: apmail-camel-issues-archive@minotaur.apache.org Delivered-To: apmail-camel-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A7B21801C for ; Fri, 30 Oct 2015 06:37:28 +0000 (UTC) Received: (qmail 21473 invoked by uid 500); 30 Oct 2015 06:37:28 -0000 Delivered-To: apmail-camel-issues-archive@camel.apache.org Received: (qmail 21301 invoked by uid 500); 30 Oct 2015 06:37:28 -0000 Mailing-List: contact issues-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list issues@camel.apache.org Received: (qmail 21287 invoked by uid 99); 30 Oct 2015 06:37:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Oct 2015 06:37:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DD5B92C1F58 for ; Fri, 30 Oct 2015 06:37:27 +0000 (UTC) Date: Fri, 30 Oct 2015 06:37:27 +0000 (UTC) From: "Claus Ibsen (JIRA)" To: issues@camel.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CAMEL-9274) StreamCache does not work correctly with MarshalProcessor and pretty much all DataFormats MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CAMEL-9274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-9274: ------------------------------- Priority: Major (was: Critical) > StreamCache does not work correctly with MarshalProcessor and pretty much all DataFormats > ----------------------------------------------------------------------------------------- > > Key: CAMEL-9274 > URL: https://issues.apache.org/jira/browse/CAMEL-9274 > Project: Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.16.0 > Reporter: Aaron Whiteside > Attachments: CAMEL_9274.patch > > > StreamCache does not work correctly with MarshalProcessor and pretty much all DataFormats > # Documentation states that stream caching can be turned on, on a per route basis. The places were we actually try and utilize stream caching only checks if the global option is turned on (MarshalProcessor + PGPKeyAccessDataFormat, I can't find any other meaningful attempts to use stream caching anywhere else) not the per route setting. > # Secondly, if we ignore the first problem, only one data formatter tries to use stream caching for unmarshaling: PGPKeyAccessDataFormat. If you try and unzip a large zip file it's contents will be decompressed into memory. The same goes for any other large data formatter conversion (unmarshaling, only). > Attached is a patch that corrects the first problem and part of the second problem (ZipFileDataFormat, ZipDataFormat and PGPKeyAccessDataFormat). > A separate issue should probably be opened to fix all the remaining DataFormat implementation to support Stream Caching. > -- This message was sent by Atlassian JIRA (v6.3.4#6332)