In a 2 DC deployment, When we use the consistency serial for Light Weight Transactions, does Cassandra pick a DC as a master DC to serialize the transactions?
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
@papishetty.praneeth_19978 There is no concept of master/slave in Cassandra. Cassandra also doesn't "serialize" LWTs.
SERIAL consistency is used in the read part of the read-before-write to satisfy the condition for the lightweight transaction. It lets C* read the current version of the data and if it encounters a write for the data which is still in progress, it commits the data as part of the read before returning a result.
SERIAL consistency, it does not enlist nodes from a "master" DC. Instead it reads from a
QUORUM of nodes (regardless of the DC they belong to) in order to satisfy the request. Cheers!
5 People are following this question.