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

File consumer - Use Filter while deleting orphaned marker lock files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 2.17.0
    • camel-core
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: