[
https://issues.apache.org/jira/browse/CASSANDRA-12194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15379203#comment-15379203
]
Alex Petrov commented on CASSANDRA-12194:
-----------------------------------------
This has to be fixed in the same way [CASSANDRA-12193] is fixed. Problems is
the same: the results are wrapped and the column that's supposed to be static
is getting turned into the "normal" column. There are no duplicates as in
[CASSANDRA-12193] because there's just one column. Adding more columns will
result into the duplicates.
{code}
cqlsh:ks> INSERT INTO bar (id, i) VALUES (1, 2);
cqlsh:ks> select * from bar;
id | i
----+------
1 | null
(1 rows)
cqlsh:ks> cursor.execute("UPDATE bar SET i = 3 WHERE id = 2;")
...
cqlsh:ks> UPDATE bar SET i = 3 WHERE id = 2;
cqlsh:ks> select * from bar;
id | i
----+------
1 | null
2 | null
(2 rows)
{code}
After the [CASSANDRA-12194] fix:
{code}
cqlsh> use ks;
cqlsh:ks> select * from bar;
id | i
----+---
1 | 2
2 | 3
{code}
> dtest failure in
> upgrade_tests.cql_tests.TestCQLNodes2RF1_Upgrade_current_2_1_x_To_indev_3_0_x.compact_metadata_test
> --------------------------------------------------------------------------------------------------------------------
>
> Key: CASSANDRA-12194
> URL: https://issues.apache.org/jira/browse/CASSANDRA-12194
> Project: Cassandra
> Issue Type: Bug
> Reporter: Sean McCarthy
> Assignee: Alex Petrov
> Labels: dtest
> Attachments: node1.log, node1_debug.log, node1_gc.log, node2.log
>
>
> example failure:
> http://cassci.datastax.com/job/upgrade_tests-all/59/testReport/upgrade_tests.cql_tests/TestCQLNodes2RF1_Upgrade_current_2_1_x_To_indev_3_0_x/compact_metadata_test
> Failed on CassCI build upgrade_tests-all #59
> {code}
> Stacktrace
> File "/usr/lib/python2.7/unittest/case.py", line 329, in run
> testMethod()
> File "/home/automaton/cassandra-dtest/upgrade_tests/cql_tests.py", line
> 2636, in compact_metadata_test
> assert_one(cursor, "SELECT * FROM bar", [1, 2])
> File "/home/automaton/cassandra-dtest/assertions.py", line 123, in
> assert_one
> assert list_res == [expected], "Expected {} from {}, but got
> {}".format([expected], query, list_res)
> "Expected [[1, 2]] from SELECT * FROM bar, but got [[1, None]]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)