Skip to content

fix vsf bug when restoring entries on a failed reclaim#19160

Merged
clintropolis merged 2 commits intoapache:masterfrom
clintropolis:fix-vsf-bug
Mar 16, 2026
Merged

fix vsf bug when restoring entries on a failed reclaim#19160
clintropolis merged 2 commits intoapache:masterfrom
clintropolis:fix-vsf-bug

Conversation

@clintropolis
Copy link
Member

This PR fixes an issue in StorageLocation caused by a mismatch of using a new WeakCacheEntry in the doubly linked list but re-using the existing entry in the map, resulting in a defensive exception that is supposed to be impossible. The map entry is what is used for unlinking, but its the re-used entry which has already been nulled out, leaving the new entry in the list.

);

// must free 20 bytes but can only evict entry1 (10). Fails and restores entry1
// where the bug was a mistmatch caused by creating a new entry in the list but re-using the old entry for the map.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mismatch (spelling)

@clintropolis clintropolis merged commit 7f001d8 into apache:master Mar 16, 2026
37 checks passed
@clintropolis clintropolis deleted the fix-vsf-bug branch March 16, 2026 16:22
@github-actions github-actions bot added this to the 37.0.0 milestone Mar 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants