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

Inconsistent bootstrapping of nifi.properties

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.5.0
    • Component/s: Core Framework
    • Labels:
      None

      Description

      NiFiProperties caches the 'instance' of properties in a typical Singleton fashion.
      This creates issues with tests that provide location of nifi.properties for its run when running the entire suite. Fir example when running TestStandardProcessScheduler, the first line in setup method:

      System.setProperty("nifi.properties.file.path", "src/test/resources/nifi.properties");
      

      It is absolutely meaningless when such test is ran as part of the suite

        Attachments

          Activity

            People

            • Assignee:
              ozhurakousky Oleg Zhurakousky
              Reporter:
              ozhurakousky Oleg Zhurakousky
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: