Re: Re: Re: Re: How to ensure trasaction create-and-update

2010-03-31 Thread zd.wbh
of dirty data. 2010-03-31 Will 发件人: Ted Dunning ted.dunn...@gmail.com 发送时间: 2010-03-30 15:39 主 题: Re: Re: Re: How to ensure trasaction create-and-update 收件人: zookeeper-user@hadoop.apache.org As I mentioned, you can keep state in the disk as an echo of the diskPair. If you don't mind

Re: How to ensure trasaction create-and-update

2010-03-30 Thread Benjamin Reed
i agree with ted. i think he points out some disadvantages with trying do do more. there is a slippery slope with these kinds of things. the implementation is complicated enough even with the simple model that we use. ben On 03/29/2010 08:34 PM, Ted Dunning wrote: I perhaps should not have

Re: How to ensure trasaction create-and-update

2010-03-30 Thread Ted Dunning
As usual, Ben says better what I was trying to say. Henry's point that a very limited multi-update would be useful is also true, though. If somebody can come up with a way to do that without making things unreasonably complicated, it would be really nice to have. In the meantime, I will try to

Re: How to ensure trasaction create-and-update

2010-03-29 Thread Ted Dunning
This is not a good thing. ZK gains lots of its power and reliability by not trying to do atomic updates to multiple znodes at once. Can you say more about the update that you want to do? It is common for updates like to be such that you can order the updates and do without a truly atomic

Re: Re: How to ensure trasaction create-and-update

2010-03-29 Thread zd.wbh
DISK's state from DISK_OFFLINE to DISK_ONLINE, these operations need to be done as a whole. 2010-03-30 Will 发件人: Ted Dunning ted.dunn...@gmail.com 发送时间: 2010-03-30 10:11 主 题: Re: How to ensure trasaction create-and-update 收件人: zookeeper-user@hadoop.apache.org This is not a good thing. ZK

Re: How to ensure trasaction create-and-update

2010-03-29 Thread Henry Robinson
On 29 March 2010 19:10, Ted Dunning ted.dunn...@gmail.com wrote: This is not a good thing. ZK gains lots of its power and reliability by not trying to do atomic updates to multiple znodes at once. Ted - Could you say a bit about how you feel ZK would sacrifice power and reliability through

Re: How to ensure trasaction create-and-update

2010-03-29 Thread Ted Dunning
I perhaps should not have said power, except insofar as ZK's strengths are in reliability which derives from simplicity. There are essentially two common ways to implement multi-node update. The first is the tradtional db style with begin-transaction paired with either a commit or a rollback

Re: Re: How to ensure trasaction create-and-update

2010-03-29 Thread Ted Dunning
as a whole. 2010-03-30 Will 发件人: Ted Dunning ted.dunn...@gmail.com 发送时间: 2010-03-30 10:11 主 题: Re: How to ensure trasaction create-and-update 收件人: zookeeper-user@hadoop.apache.org This is not a good thing. ZK gains lots of its power and reliability by not trying to do atomic updates