[ 
https://issues.apache.org/jira/browse/CASSANDRA-15557?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17039369#comment-17039369
 ] 

David Capwell commented on CASSANDRA-15557:
-------------------------------------------

Don't have a lot of history on trunk in CI, but of the history I can look at I 
have not seen it fail normally; the only sample I see is that Circle CI run.

Here is the test in question

{code}
@Test
    public void testDropListAndAddListWithSameName() throws Throwable
    {
        createTable("CREATE TABLE %s (id text PRIMARY KEY, content text, 
myCollection list<text>);");
        execute("INSERT INTO %s (id, content , myCollection) VALUES ('test', 
'first test', ['first element']);");
        execute("ALTER TABLE %s DROP myCollection;");
        execute("ALTER TABLE %s ADD myCollection list<text>;");

        assertRows(execute("SELECT * FROM %s;"), row("test", "first test", 
null));
        execute("UPDATE %s set myCollection = ['second element'] WHERE id = 
'test';");
        assertRows(execute("SELECT * FROM %s;"), row("test", "first test", 
list("second element")));
    }
{code}

> Fix flaky test org.apache.cassandra.cql3.validation.operations.AlterTest 
> testDropListAndAddListWithSameName
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-15557
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15557
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Test/unit
>            Reporter: David Capwell
>            Priority: Normal
>             Fix For: 4.0-alpha
>
>
> https://app.circleci.com/jobs/github/dcapwell/cassandra/482/tests
> {code}
> junit.framework.AssertionFailedError: Invalid value for row 0 column 2 
> (mycollection of type list<text>), expected <null> but got <[first element]>
>       at org.apache.cassandra.cql3.CQLTester.assertRows(CQLTester.java:1070)
>       at 
> org.apache.cassandra.cql3.validation.operations.AlterTest.testDropListAndAddListWithSameName(AlterTest.java:91)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to