Re: ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-11-04 Thread lei liu
I want to know what applications are idempotent or not idempotent? and Why? Could you give me a example. Thank you 2012/10/29 Ted Dunning tdunn...@maprtech.com Create cannot be idempotent because of the problem of watches and sequential files. Similarly, mkdirs, rename and delete cannot

Re: ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-11-04 Thread Steve Loughran
On 4 November 2012 17:25, lei liu liulei...@gmail.com wrote: I want to know what applications are idempotent or not idempotent? and Why? Could you give me a example. When you say idempotent, I presume you mean the operation happens at-most-once; ignoring the degenerate case where all

Re: ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-11-04 Thread lei liu
Hi Steve, Thank you for your detailed and patiently answered. I understand that. 2012/11/5 Steve Loughran ste...@hortonworks.com On 4 November 2012 17:25, lei liu liulei...@gmail.com wrote: I want to know what applications are idempotent or not idempotent? and Why? Could you give me a

ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-10-28 Thread lei liu
I think these methods should are idempotent, these methods should be repeated calls to be harmless by same client. Thanks, LiuLei

Re: ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-10-28 Thread Ted Dunning
Create cannot be idempotent because of the problem of watches and sequential files. Similarly, mkdirs, rename and delete cannot generally be idempotent. In particular applications, you might find it is OK to treat them as such, but there are definitely applications where they are not idempotent.

Re: ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-10-28 Thread lei liu
Thanks Ted for your reply. What is the the problem of watches and sequential files? If you can describe in detail, I can better understand the problem. 2012/10/29 Ted Dunning tdunn...@maprtech.com Create cannot be idempotent because of the problem of watches and sequential files.

Re: ClientProtocol create、mkdirs 、rename and delete methods are not Idempotent

2012-10-28 Thread Ted Dunning
Create cannot be idempotent with sequential files. Doing the same create twice creates two different files. On Sun, Oct 28, 2012 at 10:25 PM, lei liu liulei...@gmail.com wrote: Thanks Ted for your reply. What is the the problem of watches and sequential files? If you can describe in