You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2024/01/19 10:25:00 UTC

[jira] [Created] (HDDS-10161) Standardize hashCode and equals for volume, bucket, and key

Ivan Andika created HDDS-10161:
----------------------------------

             Summary: Standardize hashCode and equals for volume, bucket, and key
                 Key: HDDS-10161
                 URL: https://issues.apache.org/jira/browse/HDDS-10161
             Project: Apache Ozone
          Issue Type: Improvement
            Reporter: Ivan Andika
            Assignee: Ivan Andika


It's found that OmBucketInfo and OmKeyInfo {{equals}} and {{hashCode}} do not contain the same attributes.

Also OmVolumeArgs only compares volume based on the ObjectID, which might not be enough to ensure equality.

We need to standardize the usage of hashcode and equals so that there are no unexpected behaviors regarding different objects.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org