You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Saketa Chalamchala (Jira)" <ji...@apache.org> on 2026/03/05 19:47:00 UTC

[jira] [Updated] (HDDS-14768) Fix lock leak on SnapshotCache cleanup and handle eviction race appropriately

     [ https://issues.apache.org/jira/browse/HDDS-14768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Saketa Chalamchala updated HDDS-14768:
--------------------------------------
    Summary: Fix lock leak on SnapshotCache cleanup and handle eviction race appropriately  (was: Log stale eviction entries in SnapshotCache cleanup instead of throwing an exception)

> Fix lock leak on SnapshotCache cleanup and handle eviction race appropriately
> -----------------------------------------------------------------------------
>
>                 Key: HDDS-14768
>                 URL: https://issues.apache.org/jira/browse/HDDS-14768
>             Project: Apache Ozone
>          Issue Type: Bug
>          Components: OM
>            Reporter: Saketa Chalamchala
>            Assignee: Saketa Chalamchala
>            Priority: Major
>
> SnapshotCache cleanup might be unnecessarily strict. 
> The cleanup throws an `IllegalStateException` when it finds stale entries in `pendingEvictionQueue` for snapshots that have already been removed from dbMap (say when SnapshotPurge invalidates the entry).
> It might be better for cleanup to log the stale entry proceed without failing since this is not a correctness bug.
> Also, invalidate should also remove the entry from `pendingEvictionQueue` to be more consistent with bookkeeping.



--
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