cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7763) cql_tests static_with_empty_clustering test failure
Date Thu, 14 Aug 2014 10:22:12 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-7763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-7763:
----------------------------------------

    Attachment: 7763.txt

That's not related to CASSANDRA-7455, it's just that the test was introduced there and exposed
the bug. This is actually a regression from CASSANDRA-6934 which mistakenly removed the static
case from {{AbstractCType.compare}}. This was actually indicated in the comments from CASSANDRA-6934
so this is my bad for not catching it. We do need to special case static since a static cell
(which has empty components for the clustering columns) should still sort before a non static
cell with empty components, which is exactly what this test is testing.


> cql_tests static_with_empty_clustering test failure
> ---------------------------------------------------
>
>                 Key: CASSANDRA-7763
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7763
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Ryan McGuire
>            Assignee: Sylvain Lebresne
>             Fix For: 2.1 rc6
>
>         Attachments: 7763.txt
>
>
> {code}
> ======================================================================
> FAIL: static_with_empty_clustering_test (cql_tests.TestCQL)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/ryan/git/datastax/cassandra-dtest/tools.py", line 213, in wrapped
>     f(obj)
>   File "/home/ryan/git/datastax/cassandra-dtest/cql_tests.py", line 4082, in static_with_empty_clustering_test
>     assert_one(cursor, "SELECT * FROM test", ['partition1', '', 'static value', 'value'])
>   File "/home/ryan/git/datastax/cassandra-dtest/assertions.py", line 40, in assert_one
>     assert res == [expected], res
> AssertionError: [[u'partition1', u'', None, None], [u'partition1', u'', None, None],
[u'partition1', u'', None, u'value']]
> -------------------- >> begin captured logging << --------------------
> dtest: DEBUG: cluster ccm directory: /tmp/dtest-Ex54V7
> --------------------- >> end captured logging << ---------------------
> ----------------------------------------------------------------------
> Ran 1 test in 6.866s
> FAILED (failures=1)
> {code}
> regression from CASSANDRA-7455?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message