#13826: Race condition in star_imports cache
--------------------------------+-------------------------------------------
       Reporter:  vbraun        |         Owner:  GeorgSWeber 
           Type:  defect        |        Status:  needs_review
       Priority:  critical      |     Milestone:  sage-5.5    
      Component:  build         |    Resolution:              
       Keywords:                |   Work issues:              
Report Upstream:  N/A           |     Reviewers:              
        Authors:  Volker Braun  |     Merged in:              
   Dependencies:                |      Stopgaps:              
--------------------------------+-------------------------------------------

Comment (by robertwb):

 Yes, {{{sage -b}}} deletes the cache file, so the cache should never be
 stale.  Making the replacement atomic should be fixed though, and this
 patch does that.

 The code looks good, except that I think the explicit unlink of the cache
 file before writing a new one is unnecessary (and could cause issues with
 multiple stage startups at the same time).  We've decided to ignore
 whitespace, so modulo that one issue, positive review.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/13826#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to