camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-9146) SFTP Consumer fails to rename files after completion when disconnect and file-rename options set
Date Tue, 22 Sep 2015 09:10:04 GMT

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

Claus Ibsen resolved CAMEL-9146.
--------------------------------
    Resolution: Invalid
      Assignee: Claus Ibsen

2.10.x is EOL.

We have hardened the ftp components since this release. Try with latest release.

> 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
>            Assignee: Claus Ibsen
>         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)

Mime
View raw message