[ 
https://issues.apache.org/jira/browse/JCRVLT-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18119797#comment-18119797
 ] 

Konrad Windszus commented on JCRVLT-851:
----------------------------------------

[~joerghoh] Do you have insights why 
[https://github.com/apache/jackrabbit-filevault/blob/8e4e1996f8f34f8306f082042dfd45904f02c46a/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/io/AbstractArchive.java#L86]
 didn't work in this case? Even if {{vault.enableStackTraces}} is not set to 
{{true}} it should still log missing closes (just without a stacktrace) and 
close it once the reference gets garbage collected.

> Unclosed package can leave tempfiles behind
> -------------------------------------------
>
>                 Key: JCRVLT-851
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-851
>             Project: Jackrabbit FileVault
>          Issue Type: Task
>    Affects Versions: 4.1.4
>            Reporter: Joerg Hoh
>            Assignee: Joerg Hoh
>            Priority: Major
>             Fix For: 4.2.2
>
>
> JcrPackageImpl.getPackage() creates a tempfile (which is then wrapped inside 
> a ZipVaultPackage); if that package is not properly closed, it can leave 
> tempfiles behind.
> We should ensure that any unclosed tempfile is properly removed at latest 
> when the JVM terminates.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to