Re: [ZODB-Dev] Understanding conflicts

2007-06-14 Thread Dieter Maurer
Jim Carroll wrote at 2007-6-12 15:57 +:
> ...
>The code that's running essentially does:
>
>   add message to Persistent list in object
>   get_transaction().commit()
>   send_email()
>
>We are using Zodb 3.3a3, and ZEO 2.3a3.
>
>I've read that when a transaction retries, it re-runs code on the server side. 

The ZODB by itself does not rerun anything.

Zope (its ZPublisher) retries a request up to three times when it
fails due to a "ConflictError".



-- 
Dieter
___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev


[ZODB-Dev] Understanding conflicts

2007-06-12 Thread Jim Carroll

Hi,  I've got a problem with a website where occasionally we send multiple
e-mail messages when really we only want to send one.

The last time it happened, I noticed that there was a Conflict Error at the same
time as the e-mail send.

The code that's running essentially does:

   add message to Persistent list in object
   get_transaction().commit()
   send_email()

We are using Zodb 3.3a3, and ZEO 2.3a3.

I've read that when a transaction retries, it re-runs code on the server side. 
How can I verify that that's what my setup would do? (my maillog on my server
side doesn't show the duplicate e-mails, but I might not be looking far enough
back in the logs.)

Thanks

___
For more information about ZODB, see the ZODB Wiki:
http://www.zope.org/Wikis/ZODB/

ZODB-Dev mailing list  -  ZODB-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zodb-dev