Repository navigation
fix: cancel failed archive Range reads before decoder cleanup - #138
Conversation
…-range-cancellation
|
Released SDK 2.7.1 through Changesets PR #141 and successful workflow 40546245554. GitHub tag/source The resolved merge and publication-cancellation follow-up pass 479 workspace tests, root/MCP checks and Node 20/22 CI, with no outstanding independent review findings. All six stable Hipo PR #402 pins the exact stable version and was deployed to Web/API production at main A following Hipo PR #407 release is now active and retains the exact SDK pin and this change's adapters. Its current deployment is distinguished from the original rollout in the linked delivery record. |
Cached ZIP Range failures could leave synchronization waiting indefinitely for decoder cleanup. Abort the archive transport and SDK-owned output before awaiting cleanup, and pass that transport signal to storage writes waiting for capacity. Failed synchronization preserves its contiguous checkpoint and resumes through cache bypass.
The reader covers zip.js byte and streaming reads. It rejects invalid prefetched responses immediately, before a queued decoder or storage sink reads the body. Its controller stays local to the archive transport so failed cached setup can still fall back to the origin. Non-206 responses report HTTP status before cache ETag validation.
Validation on Oracle Linux arm64, Node 24.21.0:
0673119(4 failures) and pass at511cf77: cached HTTP/ETag/network errors and origin HTTP failure. They verify rejection, cache bypass where applicable, no commit or post-return writes, and successful retry.03875d1.Earlier validation at
0673119also covered SIGKILL recovery (13 uncheckpointed files retransmitted) and independent 281/562 MiB archive memory cases (maximum 364.89 MiB across six cache/single/dual cases). Full Hipo validation of the new joint candidate is tracked in https://github.com/Ontos-AI/hipo/pull/402; those SDK-only numbers do not establish Hipo's memory ceiling.Includes a patch Changeset. No public API or snapshot/checkpoint format change. Package publication and production deployment are separate release steps.
Release acceptance update:
2.6.1-beta.20261027152313; its GitHub tag and notes identifye367de113b2d79ee9a344e174e06bfaa18646833. The earlier mistagged snapshot is marked superseded and preserved for audit.Merged-main acceptance:
2.7.1-beta.20261027164158from03875d16e83123e0bde5a4d5d9fa465399bdf2ed; tag provenance verified. Full Hipo acceptance of this later beta is tracked separately before the stable release.