Are batch mutations atomic in Cassandra?

Posted by user317459 on Stack Overflow See other posts from Stack Overflow or by user317459
Published on 2010-05-21T12:02:17Z Indexed on 2010/05/22 14:30 UTC
Read the original article Hit count: 228

The Cassandra API supports batch mutations:

batch_mutate(keyspace, mutation_map, consistency_level): Executes the specified mutations on the keyspace. mutation_map is a map>>; the outer map maps the key to the inner map, which maps the column family to the Mutation; can be read as: map>>. To be more specific, the outer map key is a row key, the inner map key is the column family name. A Mutation specifies either columns to insert or columns to delete. See Mutation and Deletion above for more details.

Are all mutations that are executed in a batch executed atomically? So if one of the mutations fails, do the others fail too?

© Stack Overflow or respective owner

Related posts about cloud-computing

Related posts about cassandra