Re: Q about ZK internal: how commit is being remembered

2010-01-26 Thread Henry Robinson
Qing - That part of the documentation is slightly confusing. The elected leader must have the highest zxid that has been written to disk by a quorum of followers. ZAB makes the guarantee that a proposal which has been logged by a quorum of followers will eventually be committed. Conversely, any pr

Re: Q about ZK internal: how commit is being remembered

2010-01-26 Thread Mahadev Konar
Qing, This is how it happens - Leader will issue a COMMIT only when a quorum of servers have logged the transaction to disk. The issuing of COMMIT just means that all the servers can make the transaction visible to the client. The COMMIT message is never logged. On leader crash, another mach

Q about ZK internal: how commit is being remembered

2010-01-26 Thread Qing Yan
Hi, I have question about how zookeeper *remembers* a commit operation. According to http://hadoop.apache.org/zookeeper/docs/r3.2.2/zookeeperInternals.html#sc_summary The leader will issue a COMMIT to all followers as soon as a quorum of followers have ACKed a message. Since messages are ACKe