Skip to content

Stop crashing the host when a blob is already gone on cleanup - #17

Merged
Yan Mahdych (ymahdych) merged 1 commit into
mainfrom
fix/delete-blob-null-response
Nov 3, 2026
Merged

Yan Mahdych (ymahdych) merged 1 commit into
mainfrom
fix/delete-blob-null-response

Conversation

@ymahdych

@ymahdych Yan Mahdych (ymahdych) commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

DeleteBlobIfExistsAsync returns no raw response when the blob is already gone, so the request-id logging added in #16 threw NullReferenceException in DeleteBlob and crashed the host from TimerBatch.Flush. This null-guards it, and UpdateMessage now cleans up through the same DeleteBlob instead of throwing BlobNotFound.

🤖 Generated with Claude Code

DeleteBlobIfExistsAsync returns Response.FromValue(false, default) when the
blob or its container is gone, so GetRawResponse() is null and logging its
RequestId threw NullReferenceException after the queue message was already
deleted. The exception escaped TimerBatch.Flush and crashed the host.

- Null-guard the raw response in DeleteBlob.
- UpdateMessage reuses DeleteBlob, so a missing blob after shrinking a
  message no longer throws BlobNotFound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ymahdych Yan Mahdych (ymahdych) self-assigned this Nov 3, 2026
@ymahdych
Yan Mahdych (ymahdych) marked this pull request as ready for review November 3, 2026 08:14
@ymahdych
Yan Mahdych (ymahdych) requested review from Yaroslav Tykhonchuk (yaroslav-tykhonchuk) and a lite review from Copilot and removed request for Copilot November 3, 2026 08:15
@ymahdych
Yan Mahdych (ymahdych) merged commit 57499d1 into main Nov 3, 2026
3 of 4 checks passed
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.

2 participants