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

H2 test.mv.db left after build

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.9.2
    • 1.12.0, 1.11.4
    • Extensions
    • None

    Description

      DBCPServiceTest.java leaves a test file called `test.mv.db` in the home directory when building NiFi.  This is an H2 database file which should ideally be cleaned up after building.

      Recommend using a JUnit TemporaryFolder or a maven target directory which would enable more automatic cleanup of the temporary file.

      There are two references in the unit test to this H2 database file at lines:  360, 408

      https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/test/java/org/apache/nifi/dbcp/DBCPServiceTest.java

       

      Attachments

        Issue Links

          Activity

            People

              taftster Adam Taft
              taftster Adam Taft
              Votes:
              0 Vote for this issue
              Watchers:
              1 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 - 50m
                  50m