[jboss-jira] [JBoss JIRA] (AS7-1975) Server termination when writing config xml file results in missing config file
Kabir Khan (JIRA)
jira-events at lists.jboss.org
Mon Apr 23 16:07:19 EDT 2012
[ https://issues.jboss.org/browse/AS7-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12686836#comment-12686836 ]
Kabir Khan commented on AS7-1975:
---------------------------------
Write content to a tmp file in the config directory and then rename the file once everything succeeds. It must be in the config directory to ensure they are on the same filesystem so that the rename is atomic.
> Server termination when writing config xml file results in missing config file
> ------------------------------------------------------------------------------
>
> Key: AS7-1975
> URL: https://issues.jboss.org/browse/AS7-1975
> Project: Application Server 7
> Issue Type: Bug
> Components: Domain Management, Server
> Reporter: Nicklas Karlsson
> Assignee: Kabir Khan
> Fix For: 7.1.2.Final-redhat1
>
>
> If the server is terminated while it is writing to the config file, the file is lost and not found upon next restart
> #jboss-as ref:
> "
> <darranl> nickarls, would you mind raising an issue for that? I think we need to think about that one further - at the moment we only make a copy to 'last' if the last write was a success but I am wondering if it should be reversed and write to a temp file first and only if that succeeded overwrite the main config
> "
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list