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] [Resolved] (CAMEL-5478) File component does not consume empty files with the changed readLock
Date Thu, 16 Aug 2012 08:24:38 GMT

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

Claus Ibsen resolved CAMEL-5478.
--------------------------------

       Resolution: Duplicate
    Fix Version/s: 2.11.0
                   2.10.1
         Assignee: Claus Ibsen

See
https://issues.apache.org/jira/browse/CAMEL-5513
                
> File component does not consume empty files with the changed readLock
> ---------------------------------------------------------------------
>
>                 Key: CAMEL-5478
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5478
>             Project: Camel
>          Issue Type: Wish
>          Components: camel-core
>    Affects Versions: 2.10.0
>         Environment: All
>            Reporter: Ashwin Pejavar
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.10.1, 2.11.0
>
>
> In the 2.10.0 version of the FileChangedExclusiveReadLockStrategy, a read-lock cannot
be obtained on a zero length file. There is an explicit check to disallow this.
> e.g.
> if (newLastModified == lastModified && newLength == length && length
!= 0) {
> // We consider that zero-length files are files in progress
> LOG.trace("Read lock acquired.");
> I disagree with the reasoning in the comment. If the size of a file hasn't changed in
the poll interval, it should be consumed irrespective of size.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message