Skip to content

[BUG][Tiered cache] Removal on EhcacheDiskCache key iterator doesn't work #12652

@sgup432

Description

@sgup432

Describe the bug

EhcacheDiskCache exposes a way to iterator over keys which is basically a wrapper over underlying ehcache iterator. Link

If we try to call iterator.remove() on above iterator, it won't work as it isn't supported.

Related component

Search:Performance

To Reproduce

Write a simple unit test on EhcacheDiskCacheTests, fetch iterator and call remove(). Try to assert that the key actually got removed.

Expected behavior

Calling remove() on EhCacheKeyIterator should be able to remove the desired key.

For fix, we need to override remove() in above class.

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions