cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aleksey Yeschenko (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8679) Successful LWT INSERT should return any server generated values
Date Mon, 02 Feb 2015 20:38:35 GMT


Aleksey Yeschenko commented on CASSANDRA-8679:

All right. I see how this would be useful to you, although I do think you should either remodel
or have ntp on your clients.

That said, it's a very niche request. We don't want to return all the applied results - that's
not what most users would want to, on successful execution - and adding logic to select which
values are server generated, and which aren't, at the level of Paxos would require reingeneering
our LWT implementation. It's not a simple piece of code, but it's very stable now, and I'd
prefer to not disrupt it and risk breakage for a niche feature request.


> Successful LWT INSERT should return any server generated values
> ---------------------------------------------------------------
>                 Key: CASSANDRA-8679
>                 URL:
>             Project: Cassandra
>          Issue Type: Wish
>            Reporter: Nils Kilden-Pedersen
> A failed LWT INSERT returns the row that prevented insertion, along with {{[applied]}}
boolean value. A successful LWT INSERT only returns {{[applied]}}.
> It would be helpful to also return any other server generated values, e.g. {{NOW()}}
as {{[now]}} (or whatever).
> There is currently no way to know what exactly was inserted without re-querying the row,
which is horrible for write-throughput.

This message was sent by Atlassian JIRA

View raw message