[
https://issues.apache.org/jira/browse/CAMEL-9970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-9970.
--------------------------------
Resolution: Fixed
> CamelFileLength header is wrong for long write file
> ---------------------------------------------------
>
> Key: CAMEL-9970
> URL: https://issues.apache.org/jira/browse/CAMEL-9970
> Project: Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 2.16.3
> Reporter: Sergey Monichev
> Assignee: Claus Ibsen
> Priority: Minor
> Labels: patch
> Fix For: 2.18.0
>
> Attachments:
> CAMEL_9970__CamelFileLength_header_is_wrong_for_long_write_file.patch
>
>
> Given a long write file slowfile.dat. Camel polls the file and stores its
> parameters (length, lastModified...). Camel tries to get exclusive read lock
> and fails as file is writing by someone, next time Camel gets lock. But file
> was changed and its parameters are wrong.
> The solution is pretty simple - check the file length and lastModified when
> exclusive read lock is granted and update them.
> Here is a patch: http://pastebin.com/2vyF8BTU
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)