activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ARTEMIS-958) Improve web server tmp dir cleanup
Date Wed, 15 Feb 2017 01:19:42 GMT

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

ASF subversion and git services commented on ARTEMIS-958:
---------------------------------------------------------

Commit f6670c9aafd6fd2cde7513225ae04cd80891929d in activemq-artemis's branch refs/heads/master
from [~gaohoward]
[ https://git-wip-us.apache.org/repos/asf?p=activemq-artemis.git;h=f6670c9 ]

ARTEMIS-958 Improve web server tmp dir cleanup

When server is shutdown by user the shutdown hook will check
if the tmpdir of the web server is cleaned up. However the cleanup
is also performed in a shutdown hook (using File.deleteOnExit).
Because the order of execution of hooks is not guaranteed,
if the tmp dir is not cleaned up by the time of check,
we should add a 'force' delete to make sure the tmp dir
is removed after server stop.


> Improve web server tmp dir cleanup
> ----------------------------------
>
>                 Key: ARTEMIS-958
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-958
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 1.5.2
>            Reporter: Howard Gao
>            Assignee: Howard Gao
>            Priority: Minor
>             Fix For: 2.0.0
>
>
> When server is shutdown by user the shutdown hook will check if the tmpdir of the web
server is cleaned up. However the cleanup is also performed in a shutdown hook (using File.deleteOnExit).
Because the order of execution of hooks is not guaranteed, if the tmp dir is not cleaned up
by the time of check, we should add a 'force' delete to make sure the tmp dir is removed after
server stop.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message