Re: quorum commit Re: Synchronous replication - Mailing list pgsql-hackers

From Yeb Havinga
Subject Re: quorum commit Re: Synchronous replication
Date
Msg-id 4C4D5607.4020708@gmail.com
Whole thread Raw
In response to quorum commit Re: Synchronous replication  (Fujii Masao <masao.fujii@gmail.com>)
List pgsql-hackers
Fujii Masao wrote:
> In the following case, how should quorum commit behave?
>
> 1. quorum_standbys = 2; there are three connected synchronous standbys
> 2. One standby sends the ACK back and fails
> 3. The ACK arrives from another standby
> 4. How should quorum commit behave?
>
> (a) Transaction commit returns a "success" since the master has already
>     received two ACKs
> (b) Transaction commit waits for the "last" ACK since only one of
>     currently connected standbys has sent the ACK
>   
I'd opt for option (b) if that doesn't make the code very complex, or 
expensive (to check connected state when reaching quorum).

regards,
Yeb Havinga



pgsql-hackers by date:

Previous
From: Fujii Masao
Date:
Subject: quorum commit Re: Synchronous replication
Next
From: Yeb Havinga
Date:
Subject: Re: Synchronous replication