You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2018/12/20 22:30:00 UTC

[jira] [Commented] (CAMEL-13025) camel-core - File read lock changed - If file gets deleted then break out loop

    [ https://issues.apache.org/jira/browse/CAMEL-13025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16726274#comment-16726274 ] 

Claus Ibsen commented on CAMEL-13025:
-------------------------------------

Contributions is welcome

In the file FileChangedExclusiveReadLockStrategy we need to add check if the target file exists, in the while loop

> camel-core - File read lock changed - If file gets deleted then break out loop
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-13025
>                 URL: https://issues.apache.org/jira/browse/CAMEL-13025
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-core
>    Affects Versions: 2.18.5
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.0.0, 2.24.0
>
>
> See SO
> https://stackoverflow.com/questions/53865940/apache-camel-route-hangs-when-file-is-deleted-during-processing?noredirect=1#comment94587192_53865940
> So if the target file gets deleted during the check interval and you have timeout = 0, then it will keep looping. So we should add a check if the file still exists in the looping.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)