You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2024/04/26 07:17:00 UTC

[jira] [Resolved] (HDDS-10753) OmKeyInfo#acls and WithMetadata#metadata are not thread safe

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

Attila Doroszlai resolved HDDS-10753.
-------------------------------------
    Fix Version/s: 1.5.0
       Resolution: Fixed

> OmKeyInfo#acls and WithMetadata#metadata are not thread safe
> ------------------------------------------------------------
>
>                 Key: HDDS-10753
>                 URL: https://issues.apache.org/jira/browse/HDDS-10753
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: OM
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.5.0
>
>
> [~XiChen] pointed out in [this comment|https://github.com/apache/ozone/discussions/6518#discussioncomment-9192008] that OMKeyInfo#copyObject is just a shallow copy. It is not thread safe since OmKeyInfo#acls is just an ArrayList.
> Similarly, WithMetadata#metadata is also not thread safe.



--
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