[ZODB-Dev] API for dooming a transaction for ZODB 3.3

Casey Duncan casey at zope.com
Thu Jan 8 13:34:54 EST 2004


On Thu, 08 Jan 2004 18:35:48 +0200
Steve Alexander <steve at z3u.com> wrote:

> Casey wrote:
>  >>
> >> Assuming you call "doom()" what happens when "commit()" is
> >subsequently> called, an exception? I would argue yes if persistent
> >objects have> changed, no otherwise.
> 
> Steve wrote:
>  >
> > Yes, that sounds good.
> 
> On second thoughts, it sounds bad.
> 
> If an external system such as a transactional email sender is used
> with the system, I'd want the transactional email sender to know that
> the transaction had not committed successfully.

Agreed. "Writing" extends beyond persistent objects...
 
> So, I'm now in favour of never committing a doomed transaction.

+1
 
> The publisher can be made a bit smarter to know about doomed 
> transactions, and behave appropriately.

+1

-Casey



More information about the ZODB-Dev mailing list