camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Monichev (JIRA)" <>
Subject [jira] [Created] (CAMEL-9970) CamelFileLength header is wrong for long write file
Date Mon, 16 May 2016 13:31:12 GMT
Sergey Monichev created CAMEL-9970:

             Summary: CamelFileLength header is wrong for long write file
                 Key: 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

View raw message