Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-1959

TailFile not ingesting data when tailed file is moved with no rolling pattern

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.6.1
    • 1.1.0
    • Extensions
    • None

    Description

      In case "Rolling Filename Pattern" is not set by user and if the tailed file is moved, then the new file will not be tailed.

      Besides, in such case, the processor will be endlessly triggered without ingesting data: it creates a lot of tasks and consumes CPU. The reason is it never goes in if statement L448.

      A solution is to look at size() and lastUpdated() of the tailed file to detect a "rollover". However it won't allow the processor to ingest the potential data added in the tailed file just before being moved.

      Attachments

        Issue Links

          Activity

            People

              pvillard Pierre Villard
              pvillard Pierre Villard
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: