[ZODB-Dev] Anybody using ZODB with no calls to fsync in production?

Dieter Maurer dieter at handshake.de
Fri Oct 13 14:49:39 EDT 2006


Roché Compaan wrote at 2006-10-11 19:51 +0200:
> ...
>I'm tempted to deploy ZODB without fsync on some production FileStorage
>instances. Will I regret it?

Maybe: Without the "fsync" (as Tim pointed out, even with "fsync",
but maybe more rarely), the order in which blocks are written to
persistent storage is not deterministic. If you are unlucky,
the last transaction may have been written correctly but earlier blocks are
not written when a crash happens. When the application starts again, it may
not recognize that part of its storage is corrupt.
On the other hand, as the index file is probably not written,
the restart should try to rebuild the index file and then detect
the corruption. Thus, maybe not an issue...



-- 
Dieter


More information about the ZODB-Dev mailing list