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

TailFile can leave FileChannel open when handling NUL characters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.13.0
    • 1.13.0
    • Extensions
    • None

    Description

      In TailFile when REREAD_ON_NUL is set to 'true' and a NUL character is encountered, the processor aborts all processing and yields to try again later.
      However the opened FileChannel is not stored in the states. Because of this the reader is not cleaned up later.
      On Windows this prevents from deleting the tailed file. (On linux it seems the file still can be deleted. Leaving open the FileChannel is not good nonetheless.)

      Fix: Store the reader in the states.

      Attachments

        Issue Links

          Activity

            People

              tpalfy Tamas Palfy
              tpalfy Tamas Palfy
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m