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

Ivan Andika updated HDDS-17962:
-------------------------------
    Description: 
Currently setKeyLocationVersions is called slimLocationVersion when calling 
list. If the OmKeyInfo is not copied, this can directly mutate the cache entry 
which causes correctness issue. AFAIK most keyLocationVersions should be 1, but 
if there are more than one in some cases, this can trigger silent bugs.

We should remove setKeyLocationVersions to prevent this issue, 
slimLocationVersion should make a copy of the keyLocationVersions.

  was:
Currently setKeyLocationVersions is called slimLocationVersion when calling 
list. If the OmKeyInfo is not copied, this can directly mutate the cache entry 
which causes correctness issue. AFAIK most keyLocationVersions should be 1, but 
if there are more than one in some cases, this can trigger silent bugs.

We should remove setKeyLocationVersions to prevent this issue. 
slimLocationVersion should make a copy of the keyLocationVersions.

 

 


> Make OmKeyInfo keyLocationVersions immutable
> --------------------------------------------
>
>                 Key: HDDS-17962
>                 URL: https://issues.apache.org/jira/browse/HDDS-17962
>             Project: Apache Ozone
>          Issue Type: Sub-task
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Major
>
> Currently setKeyLocationVersions is called slimLocationVersion when calling 
> list. If the OmKeyInfo is not copied, this can directly mutate the cache 
> entry which causes correctness issue. AFAIK most keyLocationVersions should 
> be 1, but if there are more than one in some cases, this can trigger silent 
> bugs.
> We should remove setKeyLocationVersions to prevent this issue, 
> slimLocationVersion should make a copy of the keyLocationVersions.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to