Skip to content

feat(blob): name the accept failures for an expired or missing allocation - #229

Merged
alanshaw merged 2 commits into
mainfrom
ash/feat/accept-allocation-errors
Nov 11, 2026
Merged

alanshaw merged 2 commits into
mainfrom
ash/feat/accept-allocation-errors

Conversation

@alanshaw

@alanshaw alanshaw commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

A /blob/accept for an allocation that had expired, been rejected, or been removed after expiry failed with a generic HandlerExecutionError. The upload service could only tell these cases apart by reading the message. They now fail with a named error:

  • AllocationExpired: the allocation passed its expiry before the blob was received.
  • AllocationNotFound: the node holds no such allocation. It was never made, was rejected, or was removed by the expiry task.

What stays the same:

  • An allocation past its expiry whose blob was received in time is still accepted, as the spec asks.
  • An accept that arrives before the blob, on an allocation that has not expired, still fails with a short-lived error and can be sent again.

Both new failures are ordinary receipts, where the old one was short-lived. Sending the same accept again returns the same answer; the blob has to be allocated again.

The error names come from fil-forge/libforge#91. Picking that up also brings Piri up from its October libforge version.

🤖 Generated with Claude Code

Loading
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