[
https://issues.apache.org/jira/browse/HDDS-10753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17840915#comment-17840915
]
Tsz-wo Sze commented on HDDS-10753:
-----------------------------------
bq. Shallow copy of list of immutable objects ({{{}OzoneAcl{}}}) should be fine.
If the shallow copy of the list is changed, the original list (say in cache)
will also be changed. Would it cause problems?
> OmKeyInfo#acls is 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
> Priority: Major
>
> [~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.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]