You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "David Capwell (Jira)" <ji...@apache.org> on 2025/06/26 21:59:00 UTC

[jira] [Updated] (CASSANDRA-20733) Fix flakey test AbstractTypeTest#meaninglessEmptyness why is equality so hard

     [ https://issues.apache.org/jira/browse/CASSANDRA-20733?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Capwell updated CASSANDRA-20733:
--------------------------------------
     Bug Category: Parent values: Correctness(12982)Level 1 values: Test Failure(12990)
       Complexity: Low Hanging Fruit
    Discovered By: Unit Test
    Fix Version/s: NA
         Severity: Low
           Status: Open  (was: Triage Needed)

> 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
>            Priority: Normal
>             Fix For: NA
>
>
> {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: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org