History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: CAMEL-654
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Claus Ibsen
Reporter: Børge
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Apache Camel

FTP - Should not poll the file before the file has been fully transferred

Created: 01/Jul/08 02:26 AM   Updated: 29/Jul/08 10:42 PM
Component/s: camel-ftp
Affects Version/s: 1.3.0, 1.4.0
Fix Version/s: 1.5.0

Time Tracking:
Issue & Sub-Tasks
Issue Only
Not Specified

Environment: Windows

Sub-Tasks  All   Open   

 Description  « Hide
When creating a route from File Camel starts working on the file before it is fully transferred, which results in an error.
See this thread: http://www.nabble.com/Overall-notes-on-FTP-SFTP-component-td18166447s22882.html#a18198751

 All   Comments   Work Log   Change History   Subversion Commits   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Claus Ibsen - 01/Jul/08 02:41 AM
Target for 1.5. Important that Camel has good components for file, ftp etc. as they are still a major means of transport for integrations.

Claus Ibsen - 01/Jul/08 09:21 PM
The same could apply for the plain File component.


Claus Ibsen - 26/Jul/08 04:40 AM
The same for FileConsumer, should not poll the file before it has access. Maybe a new option to set this strategy

Claus Ibsen - 26/Jul/08 06:15 AM
I am adding a new option - consumer.exclusiveRead with values true|false that will only start polling the file if it has exclusive read to the file (= not in progress of being written).

I am opting for a default value of true so we don't poll files in progress. Anyone thoughts on this?
I have implemented it for the regular FTP component. Will check the SFTP part later.



Claus Ibsen - 29/Jul/08 10:42 PM
The option has been renamed to: consumer.exclusiveReadLock and is default true in Camel 1.5