[ZODB-Dev] ClientCache eats useful errors.

Anthony Baxter anthony@interlink.com.au
Fri, 02 Nov 2001 03:26:24 +1100


I've got ZEO clients falling over with:

Traceback (innermost last):
  File /app/zope/test_ekit_code/z2.py, line 579, in ?
  File <string>, line 1, in ?
  File /app/01/zope/test_ekit_code/lib/python/Zope/__init__.py, line 118, in ?
  File /app/01/zope/test_ekit_code/lib/python/ZODB/DB.py, line 159, in __init__
  File /app/01/zope/test_ekit_code/lib/python/ZEO/ClientStorage.py, line 548, in
 tpc_finish
    (Object: ('bourbon.lax2.ekorp.com', 18076))
  File /app/zope/test_ekit_code/lib/python/ZEO/ClientCache.py, line 328, in update
  File /app/zope/test_ekit_code/lib/python/ZEO/ClientCache.py, line 404, in _store
TypeError: cannot add type "instance" to string

A bit of debugging using good old 'print' shows that 's' is an
instance of class ZODB.FileStorage.CorruptedDataError, rather than 
a string. I know why this happened (stupid cron job mid-scp), but
the error's pretty bad.

Anthony


--
Anthony Baxter     <anthony@interlink.com.au>
It's never too late to have a happy childhood.