You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Witt (Jira)" <ji...@apache.org> on 2020/03/16 16:18:00 UTC

[jira] [Resolved] (NIFI-6742) H2 test.mv.db left after build

     [ https://issues.apache.org/jira/browse/NIFI-6742?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Witt resolved NIFI-6742.
----------------------------
    Resolution: Fixed

> H2 test.mv.db left after build
> ------------------------------
>
>                 Key: NIFI-6742
>                 URL: https://issues.apache.org/jira/browse/NIFI-6742
>             Project: Apache NiFi
>          Issue Type: Test
>          Components: Extensions
>    Affects Versions: 1.9.2
>            Reporter: Adam Taft
>            Assignee: Adam Taft
>            Priority: Trivial
>             Fix For: 1.12.0, 1.11.4
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> 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]
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)