Ivan Andika created HDDS-17962:
----------------------------------
Summary: 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
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]