You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Emalayan Vairavanathan <sv...@yahoo.com> on 2013/06/06 20:23:19 UTC

[Cassandra] Conflict resolution in Cassandra

Hi All,

Can someone tell me about the conflict resolution mechanisms provided by Cassandra?

More specifically does Cassandra provides a way to define application specific conflict resolution mechanisms (per row basis  / column basis)? 
           or 
Does it automatically manage the conflicts based on some synchronization algorithms ?


Thank you
Emalayan

RE: [Cassandra] Conflict resolution in Cassandra

Posted by Viktor Jevdokimov <Vi...@adform.com>.
Define a conflict. What kind  of conflict you are talking about?

There're no transactions. For simple inserts/updates latest column timestamp wins. Timestamp is provided by application.

Counter columns has some conflict resolution, but overall counter columns not working perfect.




From: Emalayan Vairavanathan [mailto:svemalayan@yahoo.com]
Sent: Thursday, June 6, 2013 9:23 PM
To: user@cassandra.apache.org
Subject: [Cassandra] Conflict resolution in Cassandra

Hi All,

Can someone tell me about the conflict resolution mechanisms provided by Cassandra?

More specifically does Cassandra provides a way to define application specific conflict resolution mechanisms (per row basis  / column basis)?
           or
Does it automatically manage the conflicts based on some synchronization algorithms ?


Thank you
Emalayan


Best regards / Pagarbiai
Viktor Jevdokimov
Senior Developer

Email: Viktor.Jevdokimov@adform.com<ma...@adform.com>
Phone: +370 5 212 3063, Fax +370 5 261 0453
J. Jasinskio 16C, LT-01112 Vilnius, Lithuania
Follow us on Twitter: @adforminsider<http://twitter.com/#!/adforminsider>
Take a ride with Adform's Rich Media Suite<http://vimeo.com/adform/richmedia>

[Adform News] <http://www.adform.com>
[Adform awarded the Best Employer 2012] <http://www.adform.com/site/blog/adform/adform-takes-top-spot-in-best-employer-survey/>


Disclaimer: The information contained in this message and attachments is intended solely for the attention and use of the named addressee and may be confidential. If you are not the intended recipient, you are reminded that the information remains the property of the sender. You must not use, disclose, distribute, copy, print or rely on this e-mail. If you have received this message in error, please contact the sender immediately and irrevocably delete this message and any copies.


Re: [Cassandra] Conflict resolution in Cassandra

Posted by Theo Hultberg <th...@iconara.net>.
Like Edward says Cassandra's conflict resolution strategy is LWW (last
write wins). This may seem simplistic, but Cassandra's Big Query-esque data
model makes it less of an issue than in a pure key/value-store like Riak,
for example. When all you have is an opaque value for a key you want to be
able to do things like keeping conflicting writes so that you can resolve
them later. Since Cassandra's rows aren't opaque, but more like a sorted
map LWW is almost always enough. With Cassandra you can add new
columns/cells to a row from multiple clients without having to worry about
conflicts. It's only when multiple clients write to the same column/cell
that there is an issue, but in that case you usually can (and you probably
should) model your way around that.

T#


On Fri, Jun 7, 2013 at 4:51 PM, Edward Capriolo <ed...@gmail.com>wrote:

> Conflicts are managed at the column level.
> 1) If two columns have the same name the column with the highest timestamp
> wins.
> 2) If two columns have the same column name and the same timestamp the
> value of the column is compared and the highest* wins.
>
> Someone correct me if I am wrong about the *. I know the algorithm is
> deterministic, I do not remember if it is highest or lowest.
>
>
> On Thu, Jun 6, 2013 at 6:25 PM, Emalayan Vairavanathan <
> svemalayan@yahoo.com> wrote:
>
>> I tried google and found conflicting answers. Thats why wanted to double
>> check with user forum.
>>
>> Thanks
>>
>>   ------------------------------
>>  *From:* Bryan Talbot <bt...@aeriagames.com>
>> *To:* user@cassandra.apache.org; Emalayan Vairavanathan <
>> svemalayan@yahoo.com>
>> *Sent:* Thursday, 6 June 2013 3:19 PM
>> *Subject:* Re: [Cassandra] Conflict resolution in Cassandra
>>
>> For generic questions like this, google is your friend:
>> http://lmgtfy.com/?q=cassandra+conflict+resolution
>>
>> -Bryan
>>
>>
>> On Thu, Jun 6, 2013 at 11:23 AM, Emalayan Vairavanathan <
>> svemalayan@yahoo.com> wrote:
>>
>> Hi All,
>>
>> Can someone tell me about the conflict resolution mechanisms provided by
>> Cassandra?
>>
>> More specifically does Cassandra provides a way to define application
>> specific conflict resolution mechanisms (per row basis  / column basis)?
>>            or
>> Does it automatically manage the conflicts based on some synchronization
>> algorithms ?
>>
>>
>> Thank you
>> Emalayan
>>
>>
>>
>>
>>
>>
>

Re: [Cassandra] Conflict resolution in Cassandra

Posted by Edward Capriolo <ed...@gmail.com>.
Conflicts are managed at the column level.
1) If two columns have the same name the column with the highest timestamp
wins.
2) If two columns have the same column name and the same timestamp the
value of the column is compared and the highest* wins.

Someone correct me if I am wrong about the *. I know the algorithm is
deterministic, I do not remember if it is highest or lowest.


On Thu, Jun 6, 2013 at 6:25 PM, Emalayan Vairavanathan <svemalayan@yahoo.com
> wrote:

> I tried google and found conflicting answers. Thats why wanted to double
> check with user forum.
>
> Thanks
>
>   ------------------------------
>  *From:* Bryan Talbot <bt...@aeriagames.com>
> *To:* user@cassandra.apache.org; Emalayan Vairavanathan <
> svemalayan@yahoo.com>
> *Sent:* Thursday, 6 June 2013 3:19 PM
> *Subject:* Re: [Cassandra] Conflict resolution in Cassandra
>
> For generic questions like this, google is your friend:
> http://lmgtfy.com/?q=cassandra+conflict+resolution
>
> -Bryan
>
>
> On Thu, Jun 6, 2013 at 11:23 AM, Emalayan Vairavanathan <
> svemalayan@yahoo.com> wrote:
>
> Hi All,
>
> Can someone tell me about the conflict resolution mechanisms provided by
> Cassandra?
>
> More specifically does Cassandra provides a way to define application
> specific conflict resolution mechanisms (per row basis  / column basis)?
>            or
> Does it automatically manage the conflicts based on some synchronization
> algorithms ?
>
>
> Thank you
> Emalayan
>
>
>
>
>
>

Re: [Cassandra] Conflict resolution in Cassandra

Posted by Emalayan Vairavanathan <sv...@yahoo.com>.
I tried google and found conflicting answers. Thats why wanted to double check with user forum. 

Thanks


________________________________
 From: Bryan Talbot <bt...@aeriagames.com>
To: user@cassandra.apache.org; Emalayan Vairavanathan <sv...@yahoo.com> 
Sent: Thursday, 6 June 2013 3:19 PM
Subject: Re: [Cassandra] Conflict resolution in Cassandra
 


For generic questions like this, google is your friend: http://lmgtfy.com/?q=cassandra+conflict+resolution

-Bryan



On Thu, Jun 6, 2013 at 11:23 AM, Emalayan Vairavanathan <sv...@yahoo.com> wrote:

Hi All,
>
>
>Can someone tell me about the conflict resolution mechanisms provided by Cassandra?
>
>
>More specifically does Cassandra provides a way to define application specific conflict resolution mechanisms (per row basis  / column basis)? 
>           or 
>Does it automatically manage the conflicts based on some synchronization algorithms ?
>
>
>
>
>Thank youEmalayan
>
>
>
>

Re: [Cassandra] Conflict resolution in Cassandra

Posted by Bryan Talbot <bt...@aeriagames.com>.
For generic questions like this, google is your friend:
http://lmgtfy.com/?q=cassandra+conflict+resolution

-Bryan


On Thu, Jun 6, 2013 at 11:23 AM, Emalayan Vairavanathan <
svemalayan@yahoo.com> wrote:

> Hi All,
>
> Can someone tell me about the conflict resolution mechanisms provided by
> Cassandra?
>
> More specifically does Cassandra provides a way to define application
> specific conflict resolution mechanisms (per row basis  / column basis)?
>            or
> Does it automatically manage the conflicts based on some synchronization
> algorithms ?
>
>
> Thank you
> Emalayan
>
>
>