[
https://issues.apache.org/jira/browse/CASSANDRA-15309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vinay Chella updated CASSANDRA-15309:
-------------------------------------
Since Version: 4.0
Source Control Link:
https://github.com/apache/cassandra/commit/dd974b4b5f7770b293fdd8e4e76d7043508abec4
Resolution: Fixed
Status: Resolved (was: Ready to Commit)
Thank you for reviewing [~djoshi] and [~jolynch]. Committed as
[dd974b4b|https://github.com/apache/cassandra/commit/dd974b4b5f7770b293fdd8e4e76d7043508abec4]
> Make the upgrade tests run on trunk
> -----------------------------------
>
> Key: CASSANDRA-15309
> URL: https://issues.apache.org/jira/browse/CASSANDRA-15309
> Project: Cassandra
> Issue Type: Bug
> Components: Test/dtest
> Reporter: Joey Lynch
> Assignee: Vinay Chella
> Priority: Normal
> Fix For: 4.0-alpha
>
>
> It appears that the upgrade tests (j8_upgradetests-no-vnodes circleci target)
> don't really work on trunk right now, it appears to be a java home issue
> potentially. Example run: https://circleci.com/gh/jolynch/cassandra/553
> {noformat}
> Your job ran 4412 tests with 3923 failures
> - test_IN_clause_on_last_key -
> upgrade_tests.cql_tests.TestCQLNodes2RF1_Upgrade_current_2_1_x_To_indev_2_1_xupgrade_tests/cql_tests.pymajor_version_int
> = 8
> def switch_jdks(major_version_int):
> """
> Changes the jdk version globally, by setting JAVA_HOME = JAVA[N]_HOME.
> This means the environment must have JAVA[N]_HOME set to switch to
> jdk version N.
> """
> new_java_home = 'JAVA{}_HOME'.format(major_version_int)
>
> try:
> > os.environ[new_java_home]
> upgrade_tests/upgrade_base.py:25:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> self = environ({'PYTHONUNBUFFERED': 'true', 'DEFAULT_DIR':
> '/home/cassandra/cassandra-dtest', 'CIRCLE_NODE_INDEX': '47',
> 'CIR...ade_tests/cql_tests.py::TestCQLNodes2RF1_Upgrade_current_2_1_x_To_indev_2_1_x::()::test_IN_clause_on_last_key
> (call)'})
> key = 'JAVA8_HOME'
> def __getitem__(self, key):
> try:
> value = self._data[self.encodekey(key)]
> except KeyError:
> # raise KeyError with the original key value
> > raise KeyError(key) from None
> E KeyError: 'JAVA8_HOME'{noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]