You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2010/05/21 07:30:51 UTC

[jira] Commented: (CAMEL-2741) GZIP/ZIP marshal/unmarshal leaves input file open

    [ https://issues.apache.org/activemq/browse/CAMEL-2741?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=59481#action_59481 ] 

Claus Ibsen commented on CAMEL-2741:
------------------------------------

There is a helper method to close the streams. I will polish the code a bit and move the close method to IOHelper where it belongs.

> GZIP/ZIP marshal/unmarshal leaves input file open
> -------------------------------------------------
>
>                 Key: CAMEL-2741
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-2741
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.3.0
>            Reporter: Roland Knight
>            Assignee: Claus Ibsen
>            Priority: Minor
>         Attachments: zipfix.patch
>
>
> Gzip/zip marshal/unmarshal leaves input files open, relying on the garbage collector to close the file. The cause sporadic file deletion exceptions in the following route:
>           from("file:incoming?delete=true")
>             .marshal().gzip()
>             .to("file:outgoing?fileName=${file:name}.gz");

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.