question

shaily93_100414 avatar image
shaily93_100414 asked Erick Ramirez answered

Why does read succeed on node 2 in the DS201 Hinted Handoff exercise?

I created 3 node cluster as required for DSE 201 exercises. When working on "Hinted Handoff" exercise, I followed the instructions:
1. My data was on node 2 and 3, so I stopped both of these and connected to cqlsh of Node 1.
2 With consistency level ONE, read query failed on Node 1 as expected and it also failed on Node 3 (when node 1 and 2 were down) wih NoHostAvailableException
3. But read query succeeded on Node 2 with consistency level ONE (even when node 1 and 3 were down) - Why ???
Please clarify my doubt.

ds201
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

In the previous exercise, there was a note that instructed you to specify the IP address + CQL port when connecting with cqlsh.

I suspect you didn't specify one or both of them so when you thought you were connected to a node, you were in fact connected to another.

I would suggest you review the instructions and try again. Cheers!

Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.