You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sascha Dirbach (JIRA)" <ji...@apache.org> on 2015/09/18 10:59:04 UTC

[jira] [Updated] (CAMEL-9146) SFTP Consumer fails to rename files after completion when disconnect and file-rename options set

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

Sascha Dirbach updated CAMEL-9146:
----------------------------------
    Summary: SFTP Consumer fails to rename files after completion when disconnect and file-rename options set  (was: SFTP Consumer does not work with disconnect and file-rename options set)

> SFTP Consumer fails to rename files after completion when disconnect and file-rename options set
> ------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-9146
>                 URL: https://issues.apache.org/jira/browse/CAMEL-9146
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.10.0
>            Reporter: Sascha Dirbach
>         Attachments: camel-9146.patch
>
>
> A camel route with a from like this:
> from("sftp://localhost:22/?username=...&password=...&disconnect=true&preMove=working&move=completed&moveFailed=fail")
> fails with an Exception, when the file is moved to the completed or to the fail directory, as the Consumer closes the connection, when disconnect is set to true. This is because, the commit or rollback of a file only occurs when the message was completely processed.
> The problem can be avoided, when a Wrapper for the GenericFileRenameProcessStrategy checks, whether the connection is still open or reconnects, if its not.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)