jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (Jira)" <j...@apache.org>
Subject [jira] [Updated] (OAK-8624) oak-run: tests leak mapd temp files
Date Mon, 02 Dec 2019 15:15:00 GMT

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

Julian Reschke updated OAK-8624:
--------------------------------
    Labels: candidate_oak_1_4  (was: candidate_oak_1_6)

> 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
>              Labels: candidate_oak_1_4
>             Fix For: 1.18.0, 1.8.18, 1.10.6, 1.6.19
>
>         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.4#803005)

Mime
View raw message