Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 39CE7173C3 for ; Mon, 2 Feb 2015 12:54:34 +0000 (UTC) Received: (qmail 51584 invoked by uid 500); 2 Feb 2015 12:54:35 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 51552 invoked by uid 500); 2 Feb 2015 12:54:35 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 51441 invoked by uid 99); 2 Feb 2015 12:54:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Feb 2015 12:54:34 +0000 Date: Mon, 2 Feb 2015 12:54:34 +0000 (UTC) From: "Akitoshi Yoshida (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-6228) Using XSLTFeature with large messages creates unremovable temporary files MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6228?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D143012= 32#comment-14301232 ]=20 Akitoshi Yoshida commented on CXF-6228: --------------------------------------- [~pip25] thanks for the test. The problem is reproducible. I'll look into it. regards, aki > Using XSLTFeature with large messages creates unremovable temporary files > ------------------------------------------------------------------------- > > Key: CXF-6228 > URL: https://issues.apache.org/jira/browse/CXF-6228 > Project: CXF > Issue Type: Bug > Affects Versions: 3.0.3 > Reporter: Papp Istv=C3=A1n P=C3=A9ter > Assignee: Akitoshi Yoshida > Priority: Minor > Attachments: bug6228reproduction.zip > > > Using the XSLT transformation feature causes the outgoing message to use = a CachedOutputStream object. If the size of the message is above the config= ured threshold, a temporary file will be created to store the message on th= e disk; however, this file is not deleted after the message is sent. > Based on info available on similar problems encountered with CachedOutput= Stream and attachments, I tried using an interceptor in the SETUP_ENDING ph= ase to close the stream manually - this, however, did not work because even= after closing the stream, the "streamList" variable was not empty, which r= esulted in the closing logic skipping file deletion in the "maybeDeleteTemp= File" method. Attempts to delete the file directly also fail for obvious re= asons. > Some (sometimes all, not sure what makes the difference) of the temporary= files are removed during a clean server shutdown, but since this is a rare= event in production environments, it does not really solve the problem. (A= ctually, the issue was discovered when the temp files filled the disk compl= etely on a production server.) > The only viable workaround I found so far was to set the CachedOutputStre= am threshold high enough to avoid caching the data to disk altogether. -- This message was sent by Atlassian JIRA (v6.3.4#6332)