[Zope] ZODB and quotas

Jim Fulton jim@digicool.com
Mon, 05 Jul 1999 09:28:11 -0400


Andreas Kostyrka wrote:
> 
> Hi!
> 
> I've been wondering how well ZODB deals with disk full conditions?
> Is it reasonable to put one Zope account quotas?

ZODB 3 will handle disk full conditions better than ZODB 2 (aka
BoboPOS).  There is one case where the handling might not be what it should
be.

If you run out of space when committing a transaction, then the transaction
will fail with some kind of error message and objects will return to their state
before the transaction.  So far so good.  On startup, Zope will recognize that
there is a truncated transaction.  It will try to copy the truncated data 
to a file and truncate the file at the transactio start.  Currently, 
Zope will fail to come up if it can't copy the truncated data, which
it probably won't be able to do if the disk is full.  

I guess that, in this case, Zope should come up *even* if it can't
save the truncated data.  It could at least log the fact, although,
if the log is a file log on the same disk, the log will fail too. :)

Jim

--
Jim Fulton           mailto:jim@digicool.com   Python Powered!        
Technical Director   (888) 344-4332            http://www.python.org  
Digital Creations    http://www.digicool.com   http://www.zope.org    

Under US Code Title 47, Sec.227(b)(1)(C), Sec.227(a)(2)(B) This email
address may not be added to any commercial mail list with out my
permission.  Violation of my privacy with advertising or SPAM will
result in a suit for a MINIMUM of $500 damages/incident, $1500 for
repeats.