Hi! I've been wondering how well ZODB deals with disk full conditions? Is it reasonable to put one Zope account quotas? (Side note: Is there any way to do something equivalent to ``du'' with Zope? Finding out how much storage is used by some Subfolder, even if not very accurate would be probably a "good thing". Andreas -- Win95: n., A huge annoying boot virus that causes random spontaneous system crashes, usually just before saving a massive project. Easily cured by UNIX. See also MS-DOS, IBM-DOS, DR-DOS, Win 3.x, Win98.
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.
participants (2)
-
Andreas Kostyrka -
Jim Fulton