[
https://issues.apache.org/jira/browse/HDDS-9945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze reassigned HDDS-9945:
--------------------------------
Assignee: Sumit Agrawal (was: Tsz-wo Sze)
> OMClientRequest.omLockDetails is non-static ThreadLocal
> -------------------------------------------------------
>
> Key: HDDS-9945
> URL: https://issues.apache.org/jira/browse/HDDS-9945
> Project: Apache Ozone
> Issue Type: Improvement
> Components: OM
> Reporter: Tsz-wo Sze
> Assignee: Sumit Agrawal
> Priority: Major
>
> In OMClientRequest, the field omLockDetails is ThreadLocal but non-static.
> Then, the ThreadLocal object will be created and garbage collected for each
> request but not reused.
> It should be changed to either
> - static, if only a single thread is accessing it, or
> - non-ThreadLocal, if more than one threads are accessing it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]