Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is mutation in cassandra?

What is mutation in cassandra? What is it doing? i didnt find any full information about it... Can you answer or share the link with manual or description Thanks

like image 664
Undrooleek Avatar asked Sep 27 '11 17:09

Undrooleek


People also ask

What is dropped mutation?

Mutations are dropped when a node's commitlog disk cannot keep up with the write requests being sent to it. The write operation in this case is "missed" and considered a failure by the coordinator node.

What is Memtable and SSTable in Cassandra?

Memtables and SSTables are maintained per table. The commit log is shared among tables. SSTables are immutable, not written to again after the memtable is flushed. Consequently, a partition is typically stored across multiple SSTable files.

What is dropped message in Cassandra?

Messages are dropped when the internode messages received by a node are not processed within their proper timeout. Load shedding is part of the Cassandra architecture. If this is a persistent issue, it is generally a sign of an overloaded node or cluster.

What is Cassandra and how does it work?

Cassandra is an open-source NoSQL distributed database that manages large amounts of data across commodity servers. It is a decentralized, scalable storage system designed to handle vast volumes of data across multiple commodity servers, providing high availability without a single point of failure.


2 Answers

Mutation is a thrift-generated class defined in the cassandra.thrift file. You can find this file in the interface folder under your cassandra folder:

/**
    A Mutation is either an insert (represented by filling column_or_supercolumn)
    or a deletion (represented by filling the deletion attribute).
    @param column_or_supercolumn. An insert to a column or supercolumn
        (possibly counter column or supercolumn)
    @param deletion. A deletion of a column or supercolumn
*/
struct Mutation {
    1: optional ColumnOrSuperColumn column_or_supercolumn,
    2: optional Deletion deletion,
}

where ColumnOrSuperColumn and Deletion are also thrift objects, defined in the same file.

like image 172
keelar Avatar answered Sep 20 '22 18:09

keelar


From http://wiki.apache.org/cassandra/API:

Mutation

A Mutation encapsulates either a column to insert, or a deletion to execute for a key. Like ColumnOrSuperColumn, the two properties are mutually exclusive - you may only set one on a Mutation.

like image 28
Chris Shain Avatar answered Sep 20 '22 18:09

Chris Shain