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

Claus Ibsen commented on CAMEL-7407:
------------------------------------

Thanks for reporting. Yeah indeed there is a problem there, if the exception 
occurs in the pollDirectory method.

> FTP route considers files as in progress after error in poll
> ------------------------------------------------------------
>
>                 Key: CAMEL-7407
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7407
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-ftp
>    Affects Versions: 2.13.0
>            Reporter: Nordin Haouari
>            Assignee: Claus Ibsen
>             Fix For: 2.13.2, 2.14.0
>
>
> When an error occurs in the middle of polling (e.g. read timeout on ftp 
> server), all files that have been read up to that point are stored in the 
> inProgressRepospitory (last line GenericFileConsumer.isValidFile()). Due to 
> the error, those files are not passed on to the ftp route, but remain in the 
> inProgressRepository. The effect is that those files are never picked up 
> unless we clear the inProgressRepository somehow (e.g. by restarting). When 
> polling fails, files should not be allowed to remain in the 
> inProgressRepository



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to