Skip to content

refactor: distinguish unreferenced blobs from orphan blobs in GC and harden error handling#32

Merged
wolfeidau merged 1 commit into
mainfrom
fix_gc_orphaned
Feb 12, 2026
Merged

refactor: distinguish unreferenced blobs from orphan blobs in GC and harden error handling#32
wolfeidau merged 1 commit into
mainfrom
fix_gc_orphaned

Conversation

@wolfeidau
Copy link
Copy Markdown
Member

  • Add UnreferencedBlobsDeleted field to GC Result, separating from OrphanBlobsDeleted
  • Add corresponding OTel metric for unreferenced blob deletions
  • Return errors from metaDB.PutBlob instead of silently ignoring them
  • Validate blob hashes with isValidHexHash in extractHashFromKey
  • Ignore backend.ErrNotFound when deleting blobs during GC
  • Update tests for new field names and add TestExtractHashFromKey

…harden error handling

- Add UnreferencedBlobsDeleted field to GC Result, separating from OrphanBlobsDeleted
- Add corresponding OTel metric for unreferenced blob deletions
- Return errors from metaDB.PutBlob instead of silently ignoring them
- Validate blob hashes with isValidHexHash in extractHashFromKey
- Ignore backend.ErrNotFound when deleting blobs during GC
- Update tests for new field names and add TestExtractHashFromKey
@wolfeidau wolfeidau merged commit 59de4ab into main Feb 12, 2026
1 check passed
@wolfeidau wolfeidau deleted the fix_gc_orphaned branch February 12, 2026 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant