Luz created CAMEL-9550:
--------------------------
Summary: File consumer - Use Filter while deleting orphaned marker
lock files
Key: CAMEL-9550
URL: https://issues.apache.org/jira/browse/CAMEL-9550
Project: Camel
Issue Type: Improvement
Components: camel-core
Affects Versions: 2.17.0
Reporter: Luz
Assume we have the FileComponent configured as follows:
* {{recursive=true}}
* {{filter=#DirectoryFilter}}
* {{readLockDeleteOrphanLockFiles=true}}
The FileComponent visits the *whole* directory tree in order to delete the
orphaned marker lock files:
* This can takes a lot of time (especially if remote filesystem)
* And it is dangerous, because unwanted directories are visited too and may
conflict with other processes.
The orphaned marker lock files procedure, should be close to the polling
procedure ({{filter}}, {{include}}, {{exclude}}, {{antInclude}},
{{antExclude}}, ...)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)