Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started



saitaladev_142721 avatar image
saitaladev_142721 asked Erick Ramirez answered

In a network partition where parts of the cluster are disconnected, can the largest group of nodes still satisfy queries?

As part of the Cassandra developer training from Datastax, I had the below question "In a full network partition, that is, parts of the cluster are completely disconnected from the whole, only the largest group of nodes can still satisfy queries."

I gave the answer as "YES" here. Because even though we break the Cassandra cluster, the largest group can still reset itself to satisfy the consistency level and serve the request.

But I see my answer was wrong. Can any one please explain me why ?

1 comment
10 |1000

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

@saitaladev_142721 Which course was it and which section? It would be great if you could update your original question with the details. Cheers!

0 Likes 0 ·

1 Answer

Erick Ramirez avatar image
Erick Ramirez answered

@saitaladev_142721 The question is a little bit more nuanced than it seems. Cassandra does not use a "majority wins" principle to determine if a request can be satisfied.

The "largest group of nodes" does not guarantee that:

  • they belong to the same data centre
  • there is enough replicas to satisfy the required consistency level

Having enough replicas in the same data centre is relevant because for consistency level such as LOCAL_QUORUM, the application only cares about replicas in the local DC and there's a chance the contactable nodes won't necessarily be local and could be from remote DCs. Cheers!

10 |1000

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