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

FileSystemRepository should not create new threads in its constructor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 0.1.0
    • 0.2.0
    • Core Framework
    • None

    Description

      FileSystemRepository creates two different ExecutorServices in its constructor. This is problematic because we iterate over the ServiceLoader, which creates an instance of FileSystemRepository and then throws it away.

      Instead, these executors should be created in the initialize method.

      It should also be documented in the ContentRepository interface that any time that initialize() is called, it is expected that the shutdown() method will also be called, as this is where we can cleanup the things that we did during initialization. This was the intended lifecycle but never was clearly documented.

      Attachments

        Issue Links

          Activity

            People

              danbress Dan Bress
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: