Skip to content

[Tiered Caching][Improvement] Simplifying tiered spillover cache locking mechanism #11802

@sgup432

Description

@sgup432

Is your feature request related to a problem? Please describe

To address comments here - #10753 (comment)
We need to see if there is a way to simplify locking mechanism which is currently hard to read.

Currently while trying to put any new item onto Heap cache, we do it under a write lock. Any evictions occuring from onHeap cache happens under the same lock after which we put it onto disk cache. The whole flow is complex to understand, need to see if there is a way better to do it.

Describe the solution you'd like

NA

Related component

Search:Performance

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions