cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrey Ilinykh <ailin...@gmail.com>
Subject Re: who does generate timestamp during the write?
Date Fri, 04 Sep 2015 18:06:09 GMT
I meant thrift based api. If we are talking about CQL then timestamps are
generated by node you are connected to. This is a "client".

On Fri, Sep 4, 2015 at 10:49 AM, ibrahim El-sanosi <ibrahimsabattt@gmail.com
> wrote:

> Hi Andrey,
>
> I just came across this articale "
>
> "Each cell in a CQL table has a corresponding timestamp
> which is taken from the clock on *the Cassandra node* *that orchestrates the
> write.* When you are reading from a Cassandra cluster the node that
> coordinates the read will compare the timestamps of the values it fetches.
> Last write(=highest timestamp) wins and will be returned to the client."
>
> What do you think?
>
> "
>
> On Fri, Sep 4, 2015 at 6:41 PM, Andrey Ilinykh <ailinykh@gmail.com> wrote:
>
>> Coordinator doesn't generate timestamp, it is generated by client.
>>
>> On Fri, Sep 4, 2015 at 10:37 AM, ibrahim El-sanosi <
>> ibrahimsabattt@gmail.com> wrote:
>>
>>> Ok, why coordinator does generate timesamp, as the write is a part of
>>> Cassandra process after client submit the request to Cassandra?
>>>
>>> On Fri, Sep 4, 2015 at 6:29 PM, Andrey Ilinykh <ailinykh@gmail.com>
>>> wrote:
>>>
>>>> Your application.
>>>>
>>>> On Fri, Sep 4, 2015 at 10:26 AM, ibrahim El-sanosi <
>>>> ibrahimsabattt@gmail.com> wrote:
>>>>
>>>>> Dear folks,
>>>>>
>>>>> When we hear about the notion of Last-Write-Wins in Cassandra
>>>>> according to timestamp, *who does generate this timestamp during the
>>>>> write, coordinator or each individual replica in which the write is going
>>>>> to be stored?*
>>>>>
>>>>>
>>>>> *Regards,*
>>>>>
>>>>>
>>>>>
>>>>> *Ibrahim*
>>>>>
>>>>
>>>>
>>>
>>
>

Mime
View raw message