Re: Weird run time error message

Jonathan Swartz <[email protected]> Tue, 13 Nov 2012 10:15:07 -0800
Newsgroups gmane.comp.web.mason.user
Message-ID <[email protected]>
Yes, probably that's what is happening. It must be a rare race condition, given that we've gotten along this many years.

Instead of writing directly to the object file, we should write a temporary file, then rename to the real object file location. 

I'm not doing much Mason 1 maintenance these days, but this one seems worthwhile. Of course it'll probably break some platform or other that doesn't like renames. :) So I'll wrap it in an option that can be disabled.

Jon

On Nov 13, 2012, at 9:29 AM, Shane McCarron wrote:

> Every once in a while, on a very busy server running a Mason 1 based application, I see an error like:
> 
> Error message:
> 
> Error during compilation of /var/www/branchfire/atm/browse/manageSuiteFiles.mpl:
> Could not get HTML::Mason::Component object from object file '/var/www/branchfire/atm/mason/obj/1249759374/browse/manageSuiteFiles.mpl.obj'
> 
> Is it possible this is happening because the component object is being written to by one process while another process is trying to read it?  In general all of these objects should be static - once they are compiled they should just be sitting there quietly.  We don't have them timeout as far as I know.  However, I do see that this particular file was regenerated around the time the error was thrown.
> 
> Thoughts?
> -- 
> Shane McCarron
> [email protected]
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov_______________________________________________
> Mason-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mason-users

------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov

_______________________________________________
Mason-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mason-users