[Zope-dev] ConflictError

Dieter Maurer dieter@handshake.de
Sat, 29 Mar 2003 02:31:13 +0100


--wglfe4aU4O
Content-Type: text/plain; charset=us-ascii
Content-Description: message body text
Content-Transfer-Encoding: 7bit

Andre Schubert wrote at 2003-3-28 10:15 +0100:
 > i have a little problem with the following log-entry in my logfile.
 > 
 > 2003-03-28T10:09:18 INFO(0) ZODB conflict error at /foo/bar/tab_kopf (1 conflicts since startup at 2003-03-28T10:09:03).
 > 
 > After searching through several mailinglists i found that this
 > error seem to occur when using sessions, i'am right ?
 > But my problem is, that tab_kopf is a ImageFile defined in my Product.
 > 
 > tab_kopf = ImageFile('www/tab_kopf.gif',globals())
 > 
 > I dont understand how there could be a ConflictError on a Image ?
 > I hope someone could give me a tip whats going on.

Please file a feature request to "<http://collector.zope.org/Zope>".
Zope should distinguish between "Write" and "Read conflict errors".
You can try the necessary modification yourself. Patch
for Zope 2.6.1 attached.

You probably see a "Database read conflict error".
It may happen for reading "foo", "bar" or "tab_kopf".
The patch will give you hints what object got this error.


Dieter


--wglfe4aU4O
Content-Type: application/x-patch
Content-Description: Improved ConflictError report
Content-Disposition: attachment;
	filename="ConflictReport.pat"
Content-Transfer-Encoding: base64

LS0tIFpvcGUvQXBwL3N0YXJ0dXAucHl+CTIwMDMtMDItMjggMTY6NTk6MjUuMDAwMDAwMDAw
ICswMTAwCisrKyBab3BlL0FwcC9zdGFydHVwLnB5CTIwMDMtMDMtMTcgMTE6MTM6MjguMDAw
MDAwMDAwICswMTAwCkBAIC0xNDAsOSArMTQwLDkgQEAKICAgICAgICAgICAgICAgICBnbG9i
YWwgY29uZmxpY3RfZXJyb3JzCiAgICAgICAgICAgICAgICAgY29uZmxpY3RfZXJyb3JzID0g
Y29uZmxpY3RfZXJyb3JzICsgMQogICAgICAgICAgICAgICAgIG1ldGhvZF9uYW1lID0gUkVR
VUVTVC5nZXQoJ1BBVEhfSU5GTycsICcnKQotICAgICAgICAgICAgICAgIGVyciA9ICgnWk9E
QiBjb25mbGljdCBlcnJvciBhdCAlcyAnCisgICAgICAgICAgICAgICAgZXJyID0gKCdaT0RC
IGNvbmZsaWN0IGVycm9yIGF0ICVzOiAlcycKICAgICAgICAgICAgICAgICAgICAgICAgJygl
cyBjb25mbGljdHMgc2luY2Ugc3RhcnR1cCBhdCAlcyknKQotICAgICAgICAgICAgICAgIExP
RyhlcnIgJSAobWV0aG9kX25hbWUsIGNvbmZsaWN0X2Vycm9ycywgc3RhcnR1cF90aW1lKSwK
KyAgICAgICAgICAgICAgICBMT0coZXJyICUgKG1ldGhvZF9uYW1lLCBzdHIodiksIGNvbmZs
aWN0X2Vycm9ycywgc3RhcnR1cF90aW1lKSwKICAgICAgICAgICAgICAgICAgICAgSU5GTywg
JycpCiAgICAgICAgICAgICAgICAgTE9HKCdDb25mbGljdCB0cmFjZWJhY2snLCBCTEFUSEVS
LCAnJywgZXJyb3I9c3lzLmV4Y19pbmZvKCkpCiAgICAgICAgICAgICAgICAgcmFpc2UgWlB1
Ymxpc2hlci5SZXRyeSh0LCB2LCB0cmFjZWJhY2spCg==
--wglfe4aU4O--