Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-9550

File consumer - Use Filter while deleting orphaned marker lock files

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.17.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davsclaus Claus Ibsen
                Reporter:
                luzifer42 Luz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: