You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Sergey Monichev (JIRA)" <ji...@apache.org> on 2016/05/16 13:31:12 UTC
[jira] [Created] (CAMEL-9970) CamelFileLength header is wrong for
long write file
Sergey Monichev created CAMEL-9970:
--------------------------------------
Summary: 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
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)