cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Witschey (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11126) select_distinct_with_deletions_test failing on non-vnode environments
Date Wed, 10 Feb 2016 18:43:18 GMT

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

Jim Witschey commented on CASSANDRA-11126:
------------------------------------------

[~slebresne] I'm afraid this isn't possible with {{ccm}} as it is. I'll file an issue about
that; that's something we can improve on.

The way I recommend you test two particular branches is to push them to GitHub and then use
something like the code here:

https://github.com/mambocab/cassandra-dtest/commit/f1b747d7e9a0f5d792da9e13009b6a12293b10fe

This will generate classes using your specified upgrade path. You can find the names of the
generated tests by running

{code}
UPGRADE_TEST_RUN=true CASSANDRA_VERSION=git:trunk nosetests 2>&1 -vv --collect-only
| grep github_to_github
{code}

{{--collect-only}} makes {{nosetests}} just list the test names, rather than running the tests.
{{github_to_github}} is a unique slug that gets added to class names when the upgrade path
is specified in the commit I linked. {{UPGRADE_TEST_RUN}} makes the upgrade_tests runnable,
and {{CASSANDRA_VERSION}} is necessary even if you don't end up using that version (this is
an implementation mistake that we will fix).

I recommend you use my {{nose-pasteable}} plugin ({{pip install nose-pasteable}}) and set
{{NOSE_PASTEABLE=true}} in the command -- this makes the names that {{nosetests}} generates
useable as arguments to {{nosetests}} as described in the README: https://github.com/mambocab/nose-pasteable

> select_distinct_with_deletions_test failing on non-vnode environments
> ---------------------------------------------------------------------
>
>                 Key: CASSANDRA-11126
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11126
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Ryan McGuire
>            Assignee: Sylvain Lebresne
>              Labels: dtest
>             Fix For: 3.0.x
>
>
> Looks like this was fixed in CASSANDRA-10762, but not for non-vnode environments:
> {code}
> $ DISABLE_VNODES=yes KEEP_TEST_DIR=yes CASSANDRA_VERSION=git:cassandra-3.0 PRINT_DEBUG=true
nosetests -s -v upgrade_tests/cql_tests.py:TestCQLNodes2RF1.select_distinct_with_deletions_test
> select_distinct_with_deletions_test (upgrade_tests.cql_tests.TestCQLNodes2RF1) ... cluster
ccm directory: /tmp/dtest-UXb0un
> http://git-wip-us.apache.org/repos/asf/cassandra.git git:cassandra-3.0
> Custom init_config not found. Setting defaults.
> Done setting configuration options:
> {   'num_tokens': None,
>     'phi_convict_threshold': 5,
>     'range_request_timeout_in_ms': 10000,
>     'read_request_timeout_in_ms': 10000,
>     'request_timeout_in_ms': 10000,
>     'truncate_request_timeout_in_ms': 10000,
>     'write_request_timeout_in_ms': 10000}
> getting default job version for 3.0.3
> UpgradePath(starting_version='binary:2.2.3', upgrade_version=None)
> starting from 2.2.3
> upgrading to {'install_dir': '/home/ryan/.ccm/repository/gitCOLONcassandra-3.0'}
> Querying upgraded node
> FAIL
> ======================================================================
> FAIL: select_distinct_with_deletions_test (upgrade_tests.cql_tests.TestCQLNodes2RF1)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/ryan/git/datastax/cassandra-dtest/upgrade_tests/cql_tests.py", line 3360,
in select_distinct_with_deletions_test
>     self.assertEqual(9, len(rows))
> AssertionError: 9 != 8
> -------------------- >> begin captured logging << --------------------
> dtest: DEBUG: cluster ccm directory: /tmp/dtest-UXb0un
> dtest: DEBUG: Custom init_config not found. Setting defaults.
> dtest: DEBUG: Done setting configuration options:
> {   'num_tokens': None,
>     'phi_convict_threshold': 5,
>     'range_request_timeout_in_ms': 10000,
>     'read_request_timeout_in_ms': 10000,
>     'request_timeout_in_ms': 10000,
>     'truncate_request_timeout_in_ms': 10000,
>     'write_request_timeout_in_ms': 10000}
> dtest: DEBUG: getting default job version for 3.0.3
> dtest: DEBUG: UpgradePath(starting_version='binary:2.2.3', upgrade_version=None)
> dtest: DEBUG: starting from 2.2.3
> dtest: DEBUG: upgrading to {'install_dir': '/home/ryan/.ccm/repository/gitCOLONcassandra-3.0'}
> dtest: DEBUG: Querying upgraded node
> --------------------- >> end captured logging << ---------------------
> ----------------------------------------------------------------------
> Ran 1 test in 56.022s
> FAILED (failures=1)
> {code}



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

Mime
View raw message