Illustration Image

CASWriteUnknownException in Cassandra 4.1.7 After Changing Replication Factor to 3

We are encountering the following error in our Cassandra 4.1.7 cluster after updating the replication factor from 1 to 3 in a 5-node cluster:

below is the error:

com.datastax.oss.driver.api.core.servererrors.CASWriteUnknownException: CAS operation result is unknown - proposal was not accepted by a quorum. (1 / 2)

Key Information:

  • Cassandra Version: 4.1.7

  • Cluster Size: 5 nodes

  • Replication Strategy: NetworkTopologyStrategy

  • Replication Factor: Initially 1, changed to 3 for the test keyspace.

  • Consistency Level: LOCAL_QUORUM for both read and write operations.

Observations:

  • The issue persists after the replication factor was changed to 3.

  • All nodes show as up with nodetool status, and there are no node failures.

  • Ran nodetool repair on all nodes.

  • The error occurs even with minimal load (just a single request).

Request:

We are seeking any insights into why this CASWriteUnknownException error is occurring after increasing the replication factor. Specifically, we are curious whether the issue is related to quorum consistency or if there are other configuration problems in the cluster.

Become part of our
growing community!
Welcome to Planet Cassandra, a community for Apache Cassandra®! We're a passionate and dedicated group of users, developers, and enthusiasts who are working together to make Cassandra the best it can be. Whether you're just getting started with Cassandra or you're an experienced user, there's a place for you in our community.
A dinosaur
Planet Cassandra is a service for the Apache Cassandra® user community to share with each other. From tutorials and guides, to discussions and updates, we're here to help you get the most out of Cassandra. Connect with us and become part of our growing community today.
© 2009-2023 The Apache Software Foundation under the terms of the Apache License 2.0. Apache, the Apache feather logo, Apache Cassandra, Cassandra, and the Cassandra logo, are either registered trademarks or trademarks of The Apache Software Foundation. Sponsored by Anant Corporation and Datastax, and Developed by Anant Corporation.

Get Involved with Planet Cassandra!

We believe that the power of the Planet Cassandra community lies in the contributions of its members. Do you have content, articles, videos, or use cases you want to share with the world?