[
https://issues.apache.org/jira/browse/HDDS-10156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ChenXi updated HDDS-10156:
--------------------------
Fix Version/s: 1.4.1
> Optimize Snapshot Cache get and eviction
> ----------------------------------------
>
> Key: HDDS-10156
> URL: https://issues.apache.org/jira/browse/HDDS-10156
> Project: Apache Ozone
> Issue Type: Sub-task
> Reporter: Swaminathan Balachandran
> Assignee: Swaminathan Balachandran
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.5.0, 1.4.1
>
>
> Currently SnapshotCache does a cleanup on every operation performed on the
> cache which is synchronized operation which overall makes the get,release
> operation non performant. A better approach would be introduce a background
> service which will periodically come up and perform a cleanup of all the
> unreferenced snapshot instances.
> HDDS-10103 removed pending eviction list to avoid deadlock issues which means
> we have to check each and every snapshot instance in the cache if it has any
> references. If we use the concurrentHashSet for the pendingEvictionSet
> instead we can avoid such deadlock issues from occuring and it would be
> optimized at the same time.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]