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

Ritesh Shukla updated HDDS-8665:
--------------------------------
    Labels: newbie  (was: )

> OmDBSnapshotInfoCodec.copyObject(..) does not follow the general contract of 
> copy.
> ----------------------------------------------------------------------------------
>
>                 Key: HDDS-8665
>                 URL: https://issues.apache.org/jira/browse/HDDS-8665
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: OM, Snapshot
>            Reporter: Tsz-wo Sze
>            Assignee: Hemant Kumar
>            Priority: Critical
>              Labels: newbie
>         Attachments: HDDS-8665_bug.patch
>
>
> OmDBSnapshotInfoCodec.copyObject(..) is a shallow copy -- it simply returns 
> the same object.  However, if it is changed to return a deep copy as shown in 
> the second comment, TestOMSnapshotDeleteRequest and 
> TestOMSnapshotPurgeRequestAndResponse will fail.  These two tests depend on 
> the behavior that, after copying, changing one copy will also change the 
> other copy.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to