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

Provenance Repository can stop producing data and become empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.12.0
    • Core Framework
    • None

    Description

      The Provenance Repository is designed to periodically age off old data. This is done by looking at the Last Modified Time for all event files, and then removing any file whose Last Modified Time is longer than the configured "nifi.provenance.repository.max.storage.time" time.

      However, it does this without first checking if the event file is the "active" event file. As a result, it can delete the event file while it is being written to. If this happens, on Linux and OSX, the delete will succeed and any further writes to the underlying file handle will simply disappear. And checking the size of the file will always return 0.

      As a result, the Event File will never roll over because it never reaches the max size. And it doesn't roll over based on time due to NIFI-7339. As a result, all data will be aged off from the Provenance Repository and no new data will be added until restart.

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              5 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 - 0.5h
                  0.5h