AssertionError

Bug #143921 reported by François Birot
This bug report is a duplicate of:  Bug #98275: ZEO versus creative __getstate__. Edit Remove
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Zope 2
Confirmed
Medium
Rocky Burt

Bug Description

>I have a Plone site that works well without using ZEO.
>Yet since I've installed ZEO I've got an assertion error message when I try to add plone pages in my folder.
I've tested it on two different servers with Zope 2.9.5 and I always get this error. If I keep the exact same config but remove the ZEO, it works again.
>
>I've read that someone had a similar error using Zope 3 (http://mail.zope.org/pipermail/zope3-users/2006-July/003833.html). I've tried like him to change at line 367 of lib/python/ZEO/cache.py the "cur_tid < tid" to "cur_tid <= tid" and now i don't have the assertionError anymore.
>But I wonder if this is a reliable change.

>Traceback (innermost last):
>Module ZPublisher.Publish, line 121, in publish
>Module Zope2.App.startup, line 240, in commit
>Module transaction._manager, line 96, in commit
>Module transaction._transaction, line 380, in commit
>Module transaction._transaction, line 378, in commit
>Module transaction._transaction, line 441, in _commitResources
>Module ZODB.Connection, line 679, in tpc_finish
>Module ZEO.ClientStorage, line 974, in tpc_finish
>Module ZEO.ClientStorage, line 999, in _update_cache
>Module ZEO.cache, line 367, in invalidate
>AssertionError

Tags: bug zope
Revision history for this message
Tres Seaver (tseaver) wrote :

Status: Pending => Accepted

 Supporters added: rocky

This is a bug in the "python package as products" support currently
within Five: it is trying to commit transactions within the
'initialize' call of Five, which *must not happen.*

Rocky, can you work out out to preserve the real feature without
opening a new database connection?

Revision history for this message
Andreas Jung (ajung) wrote :

Changes: submitter email, edited transcript, importance (critical => medium)

Revision history for this message
Andreas Jung (ajung) wrote :

Please check if the problem persists and if it is reproducable

Revision history for this message
François Birot (biroto) wrote :

"Please check if the problem persists and if it is reproducable"
--> Yes it is, I've tried it on two different servers with Zope 2.9.5 and 2.9.7.

I've just tried to remove Five and indeed I don't have the error anymore.

Revision history for this message
Wichert Akkerman (wichert) wrote :

This may be fixed in Zope 2.10.4; there are several fixes in that release that help with ZEO and packages-as-products.

Revision history for this message
panjunyong (panjunyong) wrote :

I am using Zope 2.10.5, and this problem still exists. :-C

Revision history for this message
Christian Theune (ctheune) wrote :

This is a duplicate of a ZODB bug that was fixed very recently. I'm connecting this bug as a duplicate.

Revision history for this message
Andreas Jung (ajung) wrote :

So this bug is fixed on the ZODB 3.7 branch as well?
If yes: Zope 2.10 still uses ZODB 3.7.1 (although there is already ZODB 3.7.2). For Zope 2.10.6 will have to create a new
ZODB 3.7.3 release and update the SVN:externals.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.