Question on Hinted Handoff

2010-11-01 Thread Joe Alex
I am running cassandra 0.6.6 4 nodes with RF=3 Have set the InitialTokens manually Loaded around 4 million records Had a question why the following is happening Node 4 was down when a new key 1005 was added (value 123). Node 2 which is responsible for the key added a Hint for Node 4 Node 4 was

Re: Question on Hinted Handoff

2010-11-01 Thread Joe Alex
To keep the question simple, If an insert or remove Key happens when the responsible Node is down (RF=3) what is the expected behavior when the Node comes back up ? For example Key 1005 was removed when Node 2 was down. When Node 2 came back up it started showing back ? On Mon, Nov 1, 2010 at

Re: Question on Hinted Handoff

2010-11-01 Thread Joe Alex
My findings - would be nice if somebody can please verify. Critical for our eval to verify HintedHandOff, ReadRepair and AntiEntropy works as we think it does Node 1, 2, 3, 4 RF=3 All nodes up - Node 2 is responsible for key 1005 Write CL=ONE, Insert key 1005, value=123 in Node 1 Node 2, 3, 4

Re: Question on Hinted Handoff

2010-11-01 Thread Brandon Williams
On Mon, Nov 1, 2010 at 8:28 PM, Joe Alex joe.m.a...@gmail.com wrote: My expectation was even though Node 2 was down key written to Node 3 or 4 should be updated in Node 2 using Hint and the subsequent reads to Node 1 or Node 2 itself should have got the latest value Your expectation is

Re: Question about hinted handoff

2010-07-10 Thread Benjamin Black
You constructed a pathological case and then got confused at the result. Consider instead a realistic case: RF=3, CL=QUORUM. Writes should go to all of A, B, and C. B is down when the write request arrives, so does not acknowledge the it. A and C acknowledge the write. Since quorum is

Re: Question about hinted handoff

2010-07-10 Thread Schubert Zhang
The answer of Benjamin is very right. On Sun, Jul 11, 2010 at 6:27 AM, Benjamin Black b...@b3k.us wrote: You constructed a pathological case and then got confused at the result. Consider instead a realistic case: RF=3, CL=QUORUM. Writes should go to all of A, B, and C. B is down when the

Question about hinted handoff

2010-07-08 Thread ChingShen
Hi all, Please consider this case: (RF=1, CL=ONE) 1. I have A, B and C nodes. 2. A node is a coordinator node, it sends a request to B node to do write operation. 3. B node is down during write operation, so return failure message to client, and write a hint to C node. 4. B node comes

Re: Question about hinted handoff

2010-07-08 Thread ChingShen
So, am I correctly? Shen On Thu, Jul 8, 2010 at 5:33 PM, Anty anty@gmail.com wrote: Sorry I am wrong .Miss the CF=one. On Thu, Jul 8, 2010 at 5:27 PM, Anty anty@gmail.com wrote: On Thu, Jul 8, 2010 at 4:11 PM, ChingShen chingshenc...@gmail.comwrote: Hi all, Please consider

Re: Question about hinted handoff

2010-07-08 Thread Anty
On Thu, Jul 8, 2010 at 4:11 PM, ChingShen chingshenc...@gmail.com wrote: Hi all, Please consider this case: (RF=1, CL=ONE) 1. I have A, B and C nodes. 2. A node is a coordinator node, it sends a request to B node to do write operation. 3. B node is down during write operation, so

Re: Question about hinted handoff

2010-07-08 Thread ChingShen
If so, when does hinted handoff work? On Thu, Jul 8, 2010 at 9:55 PM, Anty anty@gmail.com wrote: On Thu, Jul 8, 2010 at 4:11 PM, ChingShen chingshenc...@gmail.com wrote: Hi all, Please consider this case: (RF=1, CL=ONE) 1. I have A, B and C nodes. 2. A node is a coordinator