[
https://issues.apache.org/jira/browse/CASSANDRA-11126?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15403666#comment-15403666
]
Sylvain Lebresne commented on CASSANDRA-11126:
----------------------------------------------
I'm sorry but that is still not really working for me. I'm able to run the
first command you provide, but that runs all upgrade test which is useless to
me for the sake of debugging. If I try to run only the test for that issue
however, that doesn't seem to work:
{noformat}
$ RUN_STATIC_UPGRADE_MATRIX=true CASSANDRA_VERSION=git:trunk
JAVA8_HOME=/usr/lib/jvm/java-8-openjdk JAVA7_HOME=/usr/lib/jvm/java-7-openjdk
python2.7 ./run_dtests.py --vnodes false --nose-options='-v'
upgrade_tests/cql_tests.py:TestCQL.select_distinct_with_deletions_test
About to run nosetests with config objects:
GlobalConfigObject(vnodes=False)
Running dtests with config object GlobalConfigObject(vnodes=False)
select_distinct_with_deletions_test (upgrade_tests.cql_tests.TestCQL) ... ERROR
======================================================================
ERROR: select_distinct_with_deletions_test (upgrade_tests.cql_tests.TestCQL)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pcmanus/Git/cassandra-dtest/upgrade_tests/upgrade_base.py", line
53, in setUp
.format(self.UPGRADE_PATH.starting_version,
self.UPGRADE_PATH.starting_meta.java_version))
AttributeError: 'NoneType' object has no attribute 'starting_version'
-------------------- >> begin captured logging << --------------------
ccm: INFO: Fetching Cassandra updates...
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_2_2_x upgrade to current_3_0_x)
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_2_2_x upgrade to current_3_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'indev' (for
indev_3_0_x upgrade to indev_3_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'current' (for
indev_3_0_x upgrade to current_3_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'indev' (for
indev_2_2_x upgrade to indev_3_0_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'current' (for
indev_2_2_x upgrade to current_3_0_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'indev' (for
indev_2_2_x upgrade to indev_3_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'current' (for
indev_2_2_x upgrade to current_3_x)
dtest: DEBUG: skipping class creation as a version is undefined (this is
normal), versions: None and _VersionMeta(name='indev_2_1_x', family='2.1.x',
variant='indev', version='git:cassandra-2.1', min_proto_v=1, max_proto_v=3,
java_versions=(7, 8))
dtest: DEBUG: skipping class creation as a version is undefined (this is
normal), versions: None and _VersionMeta(name='current_2_1_x', family='2.1.x',
variant='current', version='2.1.15', min_proto_v=1, max_proto_v=3,
java_versions=(7, 8))
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'indev' (for
indev_2_1_x upgrade to indev_2_2_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'current' (for
indev_2_1_x upgrade to current_2_2_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'indev' (for
indev_2_1_x upgrade to indev_3_0_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'current' (for
indev_2_1_x upgrade to current_3_0_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'indev' (for
indev_2_1_x upgrade to indev_3_x)
dtest: DEBUG: skipping class creation, no testing of 'indev' to 'current' (for
indev_2_1_x upgrade to current_3_x)
dtest: DEBUG: skipping class creation as a version is undefined (this is
normal), versions: _VersionMeta(name='current_2_0_x', family='2.0.x',
variant='current', version='2.0.17', min_proto_v=1, max_proto_v=2,
java_versions=(7,)) and None
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_2_0_x upgrade to current_2_1_x)
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_2_1_x upgrade to current_2_2_x)
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_2_1_x upgrade to current_3_0_x)
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_2_1_x upgrade to current_3_x)
dtest: DEBUG: skipping class creation, no testing of 'current' to 'current'
(for current_3_0_x upgrade to current_3_x)
--------------------- >> end captured logging << ---------------------
{noformat}
And even if this was working, it still sound like this would run the test for
every possible branch it knows about, which would also be painful for debugging.
What is needed for debugging those upgrade test is the ability to easily run a
given test T on the upgrade from local branch X to local branch Y and just
that. And I don't know how to do that at the moment.
For now, I'm probably going to manually copy this test into a custom simple
dtest that upgrade between the 2 version I want so I can hopefully make some
progress on the underlying problem, but we have quite a few upgrade test
failures that we need to debug, and that's going to be painful if we have to do
that every time.
> 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)