[jira] [Commented] (CASSANDRA-8123) List appends when inserting in the same value

2014-10-16 Thread Jorge Bay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14173462#comment-14173462
 ] 

Jorge Bay commented on CASSANDRA-8123:
--

Known gotcha is good enough.

 List appends when inserting in the same value
 -

 Key: CASSANDRA-8123
 URL: https://issues.apache.org/jira/browse/CASSANDRA-8123
 Project: Cassandra
  Issue Type: Bug
 Environment: C* 2.1.0 and C* 2.0.10
Reporter: Jorge Bay
Priority: Minor

 List append when inserting in the same value
 I'm getting list appends when executing multiple times concurrently an INSERT 
 (or update) of a list column value on the same partition:
 INSERT INTO cf1 VALUES (id, list_sample) VALUES (id1, ['one', 'two']);
 It could result into a list with the values appended: ['one', 'two', 'one', 
 'two', ...]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-8123) List appends when inserting in the same value

2014-10-15 Thread Jorge Bay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14172326#comment-14172326
 ] 

Jorge Bay commented on CASSANDRA-8123:
--

I understand that if I'm going for unique values, I should use a set but I 
think the behavior is unexpected.

 List appends when inserting in the same value
 -

 Key: CASSANDRA-8123
 URL: https://issues.apache.org/jira/browse/CASSANDRA-8123
 Project: Cassandra
  Issue Type: Bug
 Environment: C* 2.1.0 and C* 2.0.10
Reporter: Jorge Bay
Priority: Minor

 List append when inserting in the same value
 I'm getting list appends when executing multiple times concurrently an INSERT 
 (or update) of a list column value on the same partition:
 INSERT INTO cf1 VALUES (id, list_sample) VALUES (id1, ['one', 'two']);
 It could result into a list with the values appended: ['one', 'two', 'one', 
 'two', ...]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-8123) List appends when inserting in the same value

2014-10-15 Thread Aleksey Yeschenko (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14172417#comment-14172417
 ] 

Aleksey Yeschenko commented on CASSANDRA-8123:
--

It's supposed to cover the previous values with a range tombstone, so you 
wouldn't append. However, if you execute them truly concurrently, there isn't 
much we can do, since for the two concurrent inserts they'll write the same 
range tombstone with the same timestamp, that won't overwrite each other.

How concurrent are we talking here?

 List appends when inserting in the same value
 -

 Key: CASSANDRA-8123
 URL: https://issues.apache.org/jira/browse/CASSANDRA-8123
 Project: Cassandra
  Issue Type: Bug
 Environment: C* 2.1.0 and C* 2.0.10
Reporter: Jorge Bay
Priority: Minor

 List append when inserting in the same value
 I'm getting list appends when executing multiple times concurrently an INSERT 
 (or update) of a list column value on the same partition:
 INSERT INTO cf1 VALUES (id, list_sample) VALUES (id1, ['one', 'two']);
 It could result into a list with the values appended: ['one', 'two', 'one', 
 'two', ...]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-8123) List appends when inserting in the same value

2014-10-15 Thread Jorge Bay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14172423#comment-14172423
 ] 

Jorge Bay commented on CASSANDRA-8123:
--

Just 1 node, 2 connections and issuing the insert request 100. Different 
threads and executing the requests 50 times per connection in parallel.

 List appends when inserting in the same value
 -

 Key: CASSANDRA-8123
 URL: https://issues.apache.org/jira/browse/CASSANDRA-8123
 Project: Cassandra
  Issue Type: Bug
 Environment: C* 2.1.0 and C* 2.0.10
Reporter: Jorge Bay
Priority: Minor

 List append when inserting in the same value
 I'm getting list appends when executing multiple times concurrently an INSERT 
 (or update) of a list column value on the same partition:
 INSERT INTO cf1 VALUES (id, list_sample) VALUES (id1, ['one', 'two']);
 It could result into a list with the values appended: ['one', 'two', 'one', 
 'two', ...]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-8123) List appends when inserting in the same value

2014-10-15 Thread Jorge Bay (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14172434#comment-14172434
 ] 

Jorge Bay commented on CASSANDRA-8123:
--

I understand what is causing it, but I think the behavior is unexpected: from 
an api perspective, the operation is to set the value to a new value. 
If the values are different with the same timestamp, any of the values should 
win but not append (appending is like doing a sum of 2 values in a 
single-value column, in the same situation).

 List appends when inserting in the same value
 -

 Key: CASSANDRA-8123
 URL: https://issues.apache.org/jira/browse/CASSANDRA-8123
 Project: Cassandra
  Issue Type: Bug
 Environment: C* 2.1.0 and C* 2.0.10
Reporter: Jorge Bay
Priority: Minor

 List append when inserting in the same value
 I'm getting list appends when executing multiple times concurrently an INSERT 
 (or update) of a list column value on the same partition:
 INSERT INTO cf1 VALUES (id, list_sample) VALUES (id1, ['one', 'two']);
 It could result into a list with the values appended: ['one', 'two', 'one', 
 'two', ...]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Commented] (CASSANDRA-8123) List appends when inserting in the same value

2014-10-15 Thread Sylvain Lebresne (JIRA)

[ 
https://issues.apache.org/jira/browse/CASSANDRA-8123?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14172449#comment-14172449
 ] 

Sylvain Lebresne commented on CASSANDRA-8123:
-

bq. I understand what is causing it, but I think the behavior is unexpected

We're not disagreeing with you, but given how things are working internally, we 
don't know how to fix it currently. Once we've fixed CASSANDRA-6123, we might 
be able to fix that too, but before that this will have to be a known gotcha. 
Unless you have an actual solution to fix this (that don't involve entirely 
redisigning the internal list implementation preferably)?

 List appends when inserting in the same value
 -

 Key: CASSANDRA-8123
 URL: https://issues.apache.org/jira/browse/CASSANDRA-8123
 Project: Cassandra
  Issue Type: Bug
 Environment: C* 2.1.0 and C* 2.0.10
Reporter: Jorge Bay
Priority: Minor

 List append when inserting in the same value
 I'm getting list appends when executing multiple times concurrently an INSERT 
 (or update) of a list column value on the same partition:
 INSERT INTO cf1 VALUES (id, list_sample) VALUES (id1, ['one', 'two']);
 It could result into a list with the values appended: ['one', 'two', 'one', 
 'two', ...]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)