Re: 2-phase commit - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: 2-phase commit
Date
Msg-id Pine.LNX.4.44.0309292153500.24925-100000@peter.localdomain
Whole thread Raw
In response to Re: 2-phase commit  (Manfred Spraul <manfred@colorfullife.com>)
Responses Re: 2-phase commit  (Rod Taylor <rbt@rbt.ca>)
List pgsql-hackers
Manfred Spraul writes:

> Ok. Lets assume one coordinator, two partitipants.
> Global commit send to both by coordinator. One replies with ok, the
> other one remains silent.
> What should the coordinator do? It can't fail the transaction - the
> first partitipant has commited its part. It can't complete the
> transaction, because the ok from the 2nd partitipant is still outstanding.

If a participant doesn't reply in an orderly fashion (say, after timeout),
it just gets kicked out of the whole mechanism.  That isn't the
interesting part.  The interesting part is what happens when the
coordinator fails.

-- 
Peter Eisentraut   peter_e@gmx.net



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: 7.4 status
Next
From: "Marc G. Fournier"
Date:
Subject: Re: 7.4 status