[jboss-jira] [JBoss JIRA] (WFCORE-178) ContentRepositoryImpl should not call File.deleteOnExit
Emmanuel Hugonnet (JIRA)
issues at jboss.org
Fri Nov 21 02:54:39 EST 2014
[ https://issues.jboss.org/browse/WFCORE-178?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Hugonnet resolved WFCORE-178.
--------------------------------------
Resolution: Done
> ContentRepositoryImpl should not call File.deleteOnExit
> -------------------------------------------------------
>
> Key: WFCORE-178
> URL: https://issues.jboss.org/browse/WFCORE-178
> Project: WildFly Core
> Issue Type: Bug
> Components: Domain Management
> Reporter: Brian Stansberry
> Assignee: Emmanuel Hugonnet
> Fix For: 1.0.0.Alpha14
>
>
> ContentRepositoryImpl.removeContent calls File.deleteOnExit if it can't delete the content or parent dirs. This is very wrong:
> 1) The grandparent dir may have other children completed unrelated to the item being removed.
> 2) The content in question may have been restored before process exit. For example, a deployment is undeployed, and then a while later the same bits are uploaded again.
> 3) File.deleteOnExit is a small memory leak. This one's relatively minor.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
More information about the jboss-jira
mailing list