Re: RE: Question about the two-phrase commit

2015-01-06 Thread Alexander Shraer
lient? > > Thanks !! > > > > > bit1...@163.com > > From: Ibrahim > Date: 2015-01-07 08:38 > To: zookeeper-user > Subject: RE: Question about the two-phrase commit > Thank you Alexander. I get it > > Ibrahim > > From: Alexander Shraer-2 [via zookeep

Re: RE: Question about the two-phrase commit

2015-01-06 Thread bit1...@163.com
ite has successfully done. what will A tell the client? Thanks !! bit1...@163.com From: Ibrahim Date: 2015-01-07 08:38 To: zookeeper-user Subject: RE: Question about the two-phrase commit Thank you Alexander. I get it Ibrahim From: Alexander Shraer-2 [via zookeeper-user] [mailto:ml-n

RE: Question about the two-phrase commit

2015-01-06 Thread Ibrahim
Thank you Alexander. I get it Ibrahim From: Alexander Shraer-2 [via zookeeper-user] [mailto:ml-node+s578899n7580745...@n2.nabble.com] Sent: Wednesday, January 07, 2015 12:29 ص To: Ibrahim El-sanosi (PGR) Subject: Re: Question about the two-phrase commit Edward is totally right - if the

Re: Question about the two-phrase commit

2015-01-06 Thread Alexander Shraer
be only your second case is correct, unless the node > that has latest transaction crashes forever. > > Ibrahim > From: Edward Carter [via zookeeper-user] [mailto: > ml-node+s578899n7580741...@n2.nabble.com] > Sent: Tuesday, January 06, 2015 11:53 م > To: Ibrahim El-sanosi (

Re: Question about the two-phrase commit

2015-01-06 Thread Van Klaveren, Brian N.
580741...@n2.nabble.com] Sent: Tuesday, January 06, 2015 11:53 م To: Ibrahim El-sanosi (PGR) Subject: Re: Question about the two-phrase commit If an operation is logged to disk on a minority of servers, then what happens on restart depends on which server wins the leader election. Since t

RE: Question about the two-phrase commit

2015-01-06 Thread Ibrahim
. Ibrahim From: Edward Carter [via zookeeper-user] [mailto:ml-node+s578899n7580741...@n2.nabble.com] Sent: Tuesday, January 06, 2015 11:53 م To: Ibrahim El-sanosi (PGR) Subject: Re: Question about the two-phrase commit If an operation is logged to disk on a minority of servers, then what happens

RE: Question about the two-phrase commit

2015-01-06 Thread Ibrahim
. Which one of both statement is correct? Thank you Ibrahim From: Alexander Shraer-2 [via zookeeper-user] [mailto:ml-node+s578899n7580740...@n2.nabble.com] Sent: Tuesday, January 06, 2015 11:51 م To: Ibrahim El-sanosi (PGR) Subject: Re: Question about the two-phrase commit Yes, if the

Re: Question about the two-phrase commit

2015-01-06 Thread Edward Carter
If an operation is logged to disk on a minority of servers, then what happens on restart depends on which server wins the leader election. Since the new operation is on a minority, depending on network conditions, a server that did *not* log the operation might win the leader election. In this

Re: Question about the two-phrase commit

2015-01-06 Thread Alexander Shraer
Yes, if the leader has this operation in its log (not guaranteed if it wasn't acked by majority in previous ensemble, but possible), the leader will make sure that a quorum of followers in the new ensemble has this operation before doing anything else in the new ensemble. Alex On Tue, Jan 6, 2015

Re: Question about the two-phrase commit

2015-01-06 Thread Ibrahim
Hi Alexander, So, you meant that if there is operation loged to the disk but it hasn't got enough majority, then if the zookeeper servers restart, the new leader will re-broadcast the loged operation again to the followers to commit that operation. Does above what you meant by (NEWLEADER message

Re: Question about the two-phrase commit

2015-01-06 Thread Alexander Shraer
When the leader is established there is a consensus decision on the start state of the ensemble (NEWLEADER message acts as the accept and UPTODATE message acts as commit). So all operations in the leader's log are acked by a quorum at that stage. Alex On Tue, Jan 6, 2015 at 12:41 PM, Ibrahim wro

Re: Question about the two-phrase commit

2015-01-06 Thread Ibrahim
Hi folks, This is really intersting post. It leads me to become more and more confitable about Zab implementation. I just want to make sure in bit1129 second scanario "2. A,B,C starts first Assume A is the leader since it has more recent transaction id, then the whole quorum will have this write

Re:Re: Re: Question about the two-phrase commit

2015-01-06 Thread Todd
ill have the write. Is this the expected behavior? >> I don't think so because 1 and 2 are conflicting. In 1, A's write is >> inaccessible,but in 2, A's write is accessible. >> >> Is there something that I miss? Thanks. >> >> >> >> >> >> >>

Re: Re: Question about the two-phrase commit

2015-01-06 Thread Alexander Shraer
's write is > inaccessible,but in 2, A's write is accessible. > > Is there something that I miss? Thanks. > > > > > > > > > bit1...@163.com > > From: Alexander Shraer > Date: 2015-01-06 13:26 > To: user@zookeeper.apache.org > Subject: Re: Que

Re: RE: Question about the two-phrase commit

2015-01-06 Thread bit1...@163.com
Subject: RE: Question about the two-phrase commit Hi, In your case only A and E has committed the latest transaction say am calling it as txid=1000. B, C, D servers are down at this time and doesn't have the changes of txid=1000. Also, when restarting B,C,D the servers A, E are not avai

Re: Re: Question about the two-phrase commit

2015-01-05 Thread bit1...@163.com
27;s write is accessible. Is there something that I miss? Thanks. bit1...@163.com From: Alexander Shraer Date: 2015-01-06 13:26 To: user@zookeeper.apache.org Subject: Re: Question about the two-phrase commit Hi, A few things are not accurate. First, ZooKeeper implements consensus on each opera

Re: Question about the two-phrase commit

2015-01-05 Thread Fansong Zeng
ults like this. > > > Best Regards, > Rakesh > -Original Message- > From: bit1...@163.com [mailto:bit1...@163.com] > Sent: 05 January 2015 15:56 > To: user@zookeeper.apache.org > Subject: Re: Question about the two-phrase commit > > Could someone help on this ques

Re: Question about the two-phrase commit

2015-01-05 Thread Alexander Shraer
Hi, A few things are not accurate. First, ZooKeeper implements consensus on each operation, not 2 phase commit. There are differences in the definition and guaratees of 2PC and Consensus. > 2. Followers ack the proposal and writes the change to the disk(but not persisted yet?) Before acking a fo

RE: Question about the two-phrase commit

2015-01-05 Thread Rakesh R
y 2015 15:56 To: user@zookeeper.apache.org Subject: Re: Question about the two-phrase commit Could someone help on this question? Thanks. bit1...@163.com From: bit1...@163.com Date: 2015-01-05 15:05 To: user@zookeeper.apache.org Subject: Question about the two-phrase commit Hi,Zookeepers, I

Re: Question about the two-phrase commit

2015-01-05 Thread bit1...@163.com
Could someone help on this question? Thanks. bit1...@163.com From: bit1...@163.com Date: 2015-01-05 15:05 To: user@zookeeper.apache.org Subject: Question about the two-phrase commit Hi,Zookeepers, I got a question about the two phrase commit in Zookeeper. When a write operation happens 1.