[
https://issues.apache.org/jira/browse/CASSANDRA-18321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17868693#comment-17868693
]
Michael Semb Wever commented on CASSANDRA-18321:
------------------------------------------------
I'm getting new failures:
{noformat}
Error Message
TypeError: expected string or bytes-like object
Stacktrace
self = <replication_test.TestReplication object at 0x7cbc3b1dcf40>
def test_simple(self):
"""
Test the SimpleStrategy on a 3 node cluster
"""
self.cluster.populate(3).start()
node1 = self.cluster.nodelist()[0]
> session = self.patient_exclusive_cql_connection(node1,
> consistency_level=ConsistencyLevel.ALL)
replication_test.py:212:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
dtest_setup.py:313: in patient_exclusive_cql_connection
return retry_till_success(
dtest_setup.py:40: in retry_till_success
return fun(*args, **kwargs)
dtest_setup.py:233: in exclusive_cql_connection
return self._create_session(node, keyspace, user, password, compression,
dtest_setup.py:244: in _create_session
protocol_version = get_eager_protocol_version(node.cluster.version())
dtest.py:301: in get_eager_protocol_version
if version.parse('4.0') <= version.parse(cassandra_version):
../cassandra/build/venv/lib/python3.8/site-packages/packaging/version.py:49: in
parse
return Version(version)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = <[AttributeError("'Version' object has no attribute '_version'") raised
in repr()] Version object at 0x7cbc3b231a90>
version = LooseVersion ('5.0.1')
def __init__(self, version: str) -> None:
# Validate the version and parse it into pieces
> match = self._regex.search(version)
E TypeError: expected string or bytes-like object
../cassandra/build/venv/lib/python3.8/site-packages/packaging/version.py:264:
TypeError
{noformat}
this time reproducible with
{code}
cassandra_dtest_dir="path-to-your-cassandra-dtest" .build/docker/run-tests.sh
dtest-novnode replication_test.py::TestReplication::test_simple 1
{code}
> distutils Version classes are deprecated. Use packaging.version instead.
> ------------------------------------------------------------------------
>
> Key: CASSANDRA-18321
> URL: https://issues.apache.org/jira/browse/CASSANDRA-18321
> Project: Cassandra
> Issue Type: Improvement
> Components: CI
> Reporter: Ekaterina Dimitrova
> Assignee: Dhanush Ananthkar
> Priority: Low
> Fix For: 5.x
>
>
> Lately I see a lot in Python DTests the below warning:
> {code:java}
> DeprecationWarning: distutils Version classes are deprecated. Use
> packaging.version instead.{code}
> Example from running
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown with trunk:
>
> {code:java}
> dtest.py:48
> /cassandra-dtest/dtest.py:48: DeprecationWarning: distutils Version classes
> are deprecated. Use packaging.version instead.
> MAJOR_VERSION_4 = LooseVersion('4.0')
>
> ../../dtest/lib/python3.8/site-packages/ccmlib/common.py:773
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> /dtest/lib/python3.8/site-packages/ccmlib/common.py:773:
> DeprecationWarning: distutils Version classes are deprecated. Use
> packaging.version instead.
> return LooseVersion(match.group(1))
>
> auditlog_test.py: 42 warnings
> /dtest/lib/python3.8/site-packages/setuptools/_distutils/version.py:346:
> DeprecationWarning: distutils Version classes are deprecated. Use
> packaging.version instead.
> other = LooseVersion(other)
>
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> /cassandra-dtest/conftest.py:437: DeprecationWarning: distutils Version
> classes are deprecated. Use packaging.version instead.
> since = LooseVersion(since_str_or_list)
>
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> auditlog_test.py::TestAuditlog::test_archive_on_shutdown
> /dtest/lib/python3.8/site-packages/ccmlib/common.py:481:
> DeprecationWarning: distutils Version classes are deprecated. Use
> packaging.version instead.
> version = LooseVersion(str(version))
>
> -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
> ===Flaky Test Report===
> {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]