Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
2.16.3
-
Patch Available
-
Novice
-
Patch
Description
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
Attachments
Attachments
Issue Links
- causes
-
CAMEL-12613 Camel file endpoint loses modification date and length information when preMove is used
- Resolved