You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Hemant Kumar (Jira)" <ji...@apache.org> on 2024/04/22 16:24:00 UTC
[jira] [Updated] (HDDS-10156) Optimize Snapshot Cache get and eviction
[ https://issues.apache.org/jira/browse/HDDS-10156?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hemant Kumar updated HDDS-10156:
--------------------------------
Fix Version/s: 1.5.0
Target Version/s: 1.4.1
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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
>
>
> 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org