Skip to content

feat: add hold metrics to StorageMonitor, fix some issues with StorageLocation#19217

Merged
gianm merged 1 commit into
apache:masterfrom
clintropolis:add-vsf-hold-metrics-to-storage-monitor
Mar 27, 2026
Merged

feat: add hold metrics to StorageMonitor, fix some issues with StorageLocation#19217
gianm merged 1 commit into
apache:masterfrom
clintropolis:add-vsf-hold-metrics-to-storage-monitor

Conversation

@clintropolis

Copy link
Copy Markdown
Member

changes:

  • adds storage/virtual/hold/count and storage/virtual/hold/bytes to StorageMonitor to track actively held weak cache entries
  • fixes a bug with StorageLocation when using freeSpaceToKeep where if the second call to reclaim to obtain additional space failed, StorageLocation would neither restore or unmount the entries, leaving behind orphans. Fixes by adjusting things so that we only call reclaim once and adjust the size based on whether we are trying to maintain freeSpaceToKeep or not
  • fixes an unlikely bug with StorageLocation of reclaim leaving orphan entries if all entries needed to be evicted to satisfy the request, which would fail but not restore or unmount any entries (unlikely to occur since it would mean the reclaim request was for something that could not fit in a completely empty cache, at least until we allow mixing weak and static entries..).
  • fixes an issue with StorageLocation eviction stats, which were eagerly counted instead of waiting to ensure that the entries were actually going to be evicted

@clintropolis clintropolis changed the title add hold metrics to StorageMonitor, fix some issues with StorageLocation fix: add hold metrics to StorageMonitor, fix some issues with StorageLocation Mar 27, 2026
@clintropolis clintropolis changed the title fix: add hold metrics to StorageMonitor, fix some issues with StorageLocation feat: add hold metrics to StorageMonitor, fix some issues with StorageLocation Mar 27, 2026
@gianm
gianm merged commit cef1d03 into apache:master Mar 27, 2026
64 of 66 checks passed
@github-actions github-actions Bot added this to the 37.0.0 milestone Mar 27, 2026
@clintropolis
clintropolis deleted the add-vsf-hold-metrics-to-storage-monitor branch March 27, 2026 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants