Reputation: 39
in my camel app, it is process file from ftp server. When I test, I found during file upload, meantime my route start pick up that file and do process. I have set readLock to 'changed' and delay is '60000', my file is around 500m. Does I missing anything?
Upvotes: 1
Views: 934
Reputation: 7005
Notice that the delay
option is just a fixed interval that is not "coupled" with the readLock.
The readLock option changed
checks every second if the filesize has changed. With slow uploads this could be the reason that files still uploading are already be consumed.
You could try to increase the readLockCheckInterval
higher than 1 second.
See Camel FTP docs for more details and options (Option readLock
)
Upvotes: 2