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] [Commented] (CASSANDRA-7718) dtest cql_tests.py:TestCQL.cql3_insert_thrift_test fails intermittently
Date Fri, 08 Aug 2014 12:08:12 GMT

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

Sylvain Lebresne commented on CASSANDRA-7718:
---------------------------------------------

I suspect that this might just be a problem with the test itself. The test does a simple insertion
through the cli and then select through CQL. Except that interactions with the cli are rather
hackish: we interact through stdin and stdout and in practice it's not entirely guaranteed
that the cli insertion has been really done when we do the select through CQL. And I think
that's all there is to it. The use of cli in the first place was done for expediency but the
"right" fix would probably be run the insert through thrift directly, not the cli (it's just
so annoying to have to write 10 lines of code to do a simple insert). Honestly, I'd be tempted
to just add a small sleep between the 2 operations to make sure we don't race and call it
a day...

> dtest cql_tests.py:TestCQL.cql3_insert_thrift_test fails intermittently
> -----------------------------------------------------------------------
>
>                 Key: CASSANDRA-7718
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7718
>             Project: Cassandra
>          Issue Type: Test
>          Components: Tests
>         Environment: cassandra-2.1.0 branch
>            Reporter: Michael Shuler
>            Assignee: Aleksey Yeschenko
>             Fix For: 2.1.0
>
>         Attachments: node1.log
>
>
> This test fails about 20-25% of the time - ran about 10 times through looping the test,
and it typically fails on the 4th or 5th test.
> {noformat}
> (master)mshuler@hana:~/git/cassandra-dtest$ ../loop_dtest.sh "cql_tests.py:TestCQL.cql3_insert_thrift_test"
> <...>
> ==== Run #4 ====
> nose.config: INFO: Ignoring files matching ['^\\.', '^_', '^setup\\.py$']
> cql3_insert_thrift_test (cql_tests.TestCQL) ... cluster ccm directory: /tmp/dtest-Drwunj
> [node1 ERROR] 
> [node1 ERROR] 
> FAIL
> removing ccm cluster test at: /tmp/dtest-Drwunj
> ======================================================================
> FAIL: cql3_insert_thrift_test (cql_tests.TestCQL)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/mshuler/git/cassandra-dtest/cql_tests.py", line 1627, in cql3_insert_thrift_test
>     assert res == [ [2, 4, 200] ], res
> AssertionError: []
> ----------------------------------------------------------------------
> Ran 1 test in 7.192s
> {noformat}
> loop_dtest.sh:
> {noformat}
> #!/bin/bash
> if [ ${1} ]; then
>     export MAX_HEAP_SIZE="1G"
>     export HEAP_NEWSIZE="256M"
>     export PRINT_DEBUG=true
>     COUNT=0
>     while true; do
>         echo
>         echo "==== Run #$COUNT ===="
>         nosetests --nocapture --nologcapture --verbosity=3 ${1}
>         if [ $? -ne 0 ]; then
>             exit 1
>         fi
>         ((COUNT++))
>         sleep 0.5
>     done
>     unset MAX_HEAP_SIZE HEAP_NEWSIZE PRINT_DEBUG
> else
>     echo "  ${0} needs a test to run.."
>     exit 255
> fi
> {noformat}
> I find no ERROR/WARN log entries from the failed test - attached node log anyway.



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

Mime
View raw message