[jira] Created: (CAMEL-980) File component - can not delete consumed file when processing failed (look into real cause)

classic Classic list List threaded Threaded
23 messages Options
12
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-980) File component - can not delete consumed file when processing failed (look into real cause)

JIRA jira@apache.org

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

Claus Ibsen commented on CAMEL-980:
-----------------------------------

I have committed a fix. It should take 2+ hours for the new 1.5-SNAPSHOT to be published to the maven repo.

Maybe you can try tomorrow morning.

> File component - can not delete consumed file when processing failed (look into real cause)
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-980
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-980
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: CamelExampleFileJaxb.zip
>
>
> See nabble:
> http://www.nabble.com/Problem-with-FileEndpoint-td19940096s22882.html
> *Workaround*
> Use .convertBodyTo(String.class) in the route so the file is read into memory, and the java.io.File handler shouldn't be open/locked when camel attempts to delete it after wards.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (CAMEL-980) File component - can not delete consumed file when processing failed (look into real cause)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Christian Schneider commented on CAMEL-980:
-------------------------------------------

Hi Claus,

I just updated my checkout and compiled myself. The issue does not occur anymore.
Thanks for this fast fix.

Greetings

Christian


> File component - can not delete consumed file when processing failed (look into real cause)
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-980
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-980
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: CamelExampleFileJaxb.zip
>
>
> See nabble:
> http://www.nabble.com/Problem-with-FileEndpoint-td19940096s22882.html
> *Workaround*
> Use .convertBodyTo(String.class) in the route so the file is read into memory, and the java.io.File handler shouldn't be open/locked when camel attempts to delete it after wards.

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

Reply | Threaded
Open this post in threaded view
|

[jira] Resolved: (CAMEL-980) File component - can not delete consumed file when processing failed (look into real cause)

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Claus Ibsen resolved CAMEL-980.
-------------------------------

    Resolution: Fixed

That is so great. Thanks Christian for taking the time to provide a test app and pin point the issue.

I have looked elsewhere and have fixed a few other data formats as well where resources should be closed as well.

> File component - can not delete consumed file when processing failed (look into real cause)
> -------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-980
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-980
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 1.4.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Critical
>             Fix For: 1.5.0
>
>         Attachments: CamelExampleFileJaxb.zip
>
>
> See nabble:
> http://www.nabble.com/Problem-with-FileEndpoint-td19940096s22882.html
> *Workaround*
> Use .convertBodyTo(String.class) in the route so the file is read into memory, and the java.io.File handler shouldn't be open/locked when camel attempts to delete it after wards.

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

12