[
https://issues.apache.org/jira/browse/HDDS-13978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Swaminathan Balachandran resolved HDDS-13978.
---------------------------------------------
Resolution: Fixed
> OMLockDetails should not be used as the object returns a ThreadLocal Object
> ---------------------------------------------------------------------------
>
> Key: HDDS-13978
> URL: https://issues.apache.org/jira/browse/HDDS-13978
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Swaminathan Balachandran
> Assignee: Swaminathan Balachandran
> Priority: Major
> Labels: pull-request-available
>
> Currenlty OzoneManagerLock returns a ThreadLocal object of OmLockDetails
> which cannot be reused across multiplic lock lifecycles. Thus we should
> ensure the object is always copied used to use the empty static EmptyLock
> instance.
> [https://github.com/apache/ozone/blob/5e715aa072f1dd02db056305a70d99619b785950/hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/lock/OzoneManagerLock.java#L583]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]