[
https://issues.apache.org/jira/browse/OAK-8624?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16929187#comment-16929187
]
Julian Reschke edited comment on OAK-8624 at 9/16/19 2:24 PM:
--------------------------------------------------------------
Proposed change: [^OAK-8624.diff] - [~mreutegg] what do you think?
was (Author: reschke):
Proposed change: [^OAK-8624.diff]
> oak-run: tests leak mapd temp files
> -----------------------------------
>
> Key: OAK-8624
> URL: https://issues.apache.org/jira/browse/OAK-8624
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: run
> Reporter: Julian Reschke
> Assignee: Julian Reschke
> Priority: Minor
> Attachments: OAK-8624.diff
>
>
> This is because {{MapDBMapFactory}} is backed by temporary DB, but that one
> is never closed.
> Fix:
> - make it {{closeable}}
> - adapt test case and use in {{RecoveryCommand}}
> However, {{RecoveryCommand}} sets the {{MapFactory}} instance globally, and
> never resets it. Thus, if the factory is indeed closed, subsequent tests will
> fail. So, in {{RecoveryCommand}}, restore the default factory when done.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)