Build Cloud-Native apps with Apache Cassandra

GOT QUESTIONS from the Workshop? You're in the right place! Post a question here and we'll get you answers.

Click here for Week 8 Materials and Homework.

Follow us on Eventbrite to get notified when new workshops are scheduled!


question

nirjharray avatar image
nirjharray asked ·

Why is LOCAL_ONE not allowed for write consistency level in Astra?

While performing an INSERT with CL as LOCAL_ONE why the below error occur?

An error occurred on line 3:
Provided value LOCAL_ONE is not allowed for Write Consistency Level (disallowed values are: [ANY, ONE, LOCAL_ONE])
astra
10 |1000 characters needed characters left characters exceeded

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 ·

DataStax Astra databases include guardrails that enforce best practices so new (and even experienced) developers are off to a good start when using Apache Cassandra.

One of those best practices is to use a strong consistency level when writing data. The recommendation is to use LOCAL_QUORUM or QUORUM to mitigate against data loss in the event of a replica being unavailable.

For more information, see the DataStax Astra documentation. Cheers!

Share
10 |1000 characters needed characters left characters exceeded

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