[tahoe-lafs-trac-stream] [tahoe-lafs] #1279: silent failure of bin/tahoe when root partition is out of space?

tahoe-lafs trac at tahoe-lafs.org
Mon Jan 17 07:52:38 UTC 2011


#1279: silent failure of bin/tahoe when root partition is out of space?
----------------------------+-----------------------------------------------
     Reporter:  davidsarah  |       Owner:  somebody       
         Type:  defect      |      Status:  reopened       
     Priority:  minor       |   Milestone:  undecided      
    Component:  code        |     Version:  1.8.1          
   Resolution:              |    Keywords:  usability error
Launchpad Bug:              |  
----------------------------+-----------------------------------------------
Changes (by zooko):

  * status:  closed => reopened
  * resolution:  wontfix =>


Comment:

 Actually, if the problem is triggered by {{{python}}}'s failed attempt to
 write {{{.pyc}}} files, then perhaps we could work-around the problem by
 setting the blessed {{{PYTHONDONTWRITEBYTECODE=1}}} environment variable,
 or passing the equivalent {{{-B}}} option to {{{python}}} (only available
 in {{{python >= 2.6}}}.

 Kiba: could you please run your filesystem out of space again and
 reproduce this problem after setting {{{PYTHONDONTWRITEBYTECODE=1}}}?

 We should consider using that setting for other reasons -- stale
 {{{.pyc}}} files that are left behind when their {{{.py}}} file has been
 mv'ed or rm'ed are a source of confusion, and the {{{.pyc}}} files can
 contain file locations which are stale because the {{{.pyc}}} and
 {{{.py}}} were both moved since the {{{.pyc}}} was generated. Also, the
 presence of {{{.pyc}}}'s might encourage someone to delete or omit the
 corresponding {{{.py}}}'s, thus making it harder for people to get access
 to the running source code. Finally, the time spent to write {{{.pyc}}}
 files is a performance penalty for startup. I wouldn't be surprised if
 {{{PYTHONDONTWRITEBYTECODE=1}}} doesn't improve startup performance even
 when {{{.pyc}}} files are already present, too.

-- 
Ticket URL: <http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1279#comment:5>
tahoe-lafs <http://tahoe-lafs.org>
secure decentralized storage


More information about the tahoe-lafs-trac-stream mailing list