camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashwin Pejavar (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAMEL-5478) File component does not consume empty files with the changed readLock
Date Mon, 30 Jul 2012 22:38:33 GMT
Ashwin Pejavar created CAMEL-5478:
-------------------------------------

             Summary: 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: Bug
          Components: camel-core
    Affects Versions: 2.10.0
         Environment: All
            Reporter: Ashwin Pejavar


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