camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-9970) CamelFileLength header is wrong for long write file
Date Tue, 17 May 2016 06:53:13 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-9970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen updated CAMEL-9970:
-------------------------------
    Fix Version/s: 2.18.0

> 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
>            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)

Mime
View raw message