You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Alberto Brosich (JIRA)" <ji...@apache.org> on 2013/10/21 15:55:42 UTC

[jira] [Reopened] (CAMEL-6574) FTP consumer does not detect file changes

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

Alberto Brosich reopened CAMEL-6574:
------------------------------------


Still having problems using SFTP consumer. Trace the component gives no additional information.

Endpoint configuration:

sftp://username@host//dirname?delay=1800000&disconnect=true&fileName=FILENAME&idempotentKey=$simple{file:name}-$simple{file:modified}-$simple{file:size}&idempotentRepository=#fileStore&maxMessagesPerPoll=1&noop=true&password=xxxxxx&readLock=changed&sortBy=file:modified

Log:
2013-10-21 15:26:57,921 TRACE SftpConsumer - SftpFile[fileName=FILENAME, longName=-rwxr-xr-x    1 User Group   1504500 Oct 21 12:16 FILENAME, dir=false]
2013-10-21 15:26:57,925 TRACE SftpConsumer - This consumer is idempotent and the file has been consumed before. Will skip this file: RemoteFile[dirname/FILENAME]

I tried both inMemory and file idempotent key repository but the behaviour is always the same. Looking in the file repository I can see the old key  that is different from that of the current file, but the consumer always says that the file has been consumed before.


> FTP consumer does not detect file changes
> -----------------------------------------
>
>                 Key: CAMEL-6574
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6574
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.11.1
>         Environment: GNU/Debian 6.0, Java 1.7 
>            Reporter: Alberto Brosich
>            Assignee: Claus Ibsen
>             Fix For: 2.12.0
>
>
> I have a route with an FTP consumer with the following options:
> delay=1800000
> disconnect=true
> fileName=xxxxx.yyy
> idempotent=true
> idempotentKey=${file:name}-${file:size}
> maxMessagesPerPoll=1
> noop=true
> readLock=changed
> sortBy=file:modified
> Upgrading from camel 2.11.0 to 2.11.1 the FTP consumer does not detect changes in the file.
> I tried several idempotentKey without success.
> Reverting to 2.11.0 works all fine.
> I did not find any relevant info in the release notes.



--
This message was sent by Atlassian JIRA
(v6.1#6144)