[ZODB-Dev] ConflictError and POSKeyError with 2.6 CVS :-(

Andrew Sydelko andrew@sydelko.org
Wed, 16 Oct 2002 14:55:19 -0500


On Wed, 16 Oct 2002 09:58:13 -0400 jeremy@zope.com (Jeremy Hylton) wrote:

> Chris,
> 
> I just checked in a little script that should report on dangling
> references in a storage.  It scans the entire database and prints a
> little report like this for a corrupted storage:

I decided to run your fsrefs.py on our Data.fs and it came back with:

# /data/www/Zope.10/bin/python fsrefs.py Data.fs
Traceback (most recent call last):
  File "fsrefs.py", line 79, in ?
    main(sys.argv[1])
  File "fsrefs.py", line 68, in main
    data, serial = fs.load(oid, "")
  File "/data/www/Zope.10/src/Zope-2.5.1-src/lib/python/ZODB/FileStorage.py", line 582, in load
    return self._load(oid, version, self._index, self._file)
  File "/data/www/Zope.10/src/Zope-2.5.1-src/lib/python/ZODB/FileStorage.py", line 569, in _load
    return _loadBack(file, oid, pnv)
  File "/data/www/Zope.10/src/Zope-2.5.1-src/lib/python/ZODB/FileStorage.py", line 2137, in _loadBack
    doid, serial, prev, tloc, vlen, plen = unpack(">8s8s8s8sH8s", h)
struct.error: unpack str size does not match format

Is that a bad thing?

--andy.