David Capwell created CASSANDRA-20733:
-----------------------------------------
Summary: Fix flakey test AbstractTypeTest#meaninglessEmptyness why
is equality so hard
Key: CASSANDRA-20733
URL: https://issues.apache.org/jira/browse/CASSANDRA-20733
Project: Apache Cassandra
Issue Type: Bug
Components: CI
Reporter: David Capwell
Assignee: David Capwell
{code}
[New type class org.apache.cassandra.db.marshal.LegacyTimeUUIDType detected
that says its emptyness is meaningless, but it isn't allowed to be! This is a
legacy concept only!]
...
org.apache.cassandra.db.marshal.LexicalUUIDType,
{code}
Turns out that org.apache.cassandra.db.marshal.AbstractTimeUUIDType#equals has
the following
{code}
@Override
public boolean equals(Object obj)
{
return obj instanceof AbstractTimeUUIDType<?>;
}
{code}
Which means that LegacyTimeUUIDType.instance.equals(TimeUUIDType.instance).
This causes issues with the test
Equality truly is meaningless…
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]