You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by bu...@apache.org on 2003/11/18 09:52:47 UTC

DO NOT REPLY [Bug 24769] New: - [FIX] Registry service can screw files on unproper tomcat shutdown

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24769>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24769

[FIX] Registry service can screw files on unproper tomcat shutdown

           Summary: [FIX] Registry service can screw files on unproper
                    tomcat shutdown
           Product: Jetspeed
           Version: 1.5-dev / CVS
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Registry
        AssignedTo: jetspeed-dev@jakarta.apache.org
        ReportedBy: apernoud@sopragroup.com


The current registry service directly overwrites xreg files on tomcat (or other 
app server) shutdown.
This can lead to screwed files when tomcat hangs or is killed while rewriting 
those file. I've met this several times in production and modified my 
environment to prevent this direct rewriting succesfully.
Here is a proposed patch, that first write the file into a tmp directory 
(defined in the service), and then only move it to the correct directory. This 
won't resolve the fact that on unproper shutdown some registry infos may be 
lost, but at least xreg files will be ok.
Comments welcome !

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org