Repository navigation
fix(browser): fail the IndexedDB handle after a failed flush and settle every flush (#894) - #904
Merged
Merged
Conversation
…le every flush (#894) Backport of the v3 fix to format v7. An IndexedDB flush lands whole or not at all and always settles; after a failed flush the handle rejects further writes, checkpoints and imports with STG-046 until reopened, and the failure itself is STG-048. Registers STG-046 and STG-048 with their v3 meanings. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
This was referenced Nov 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Backport of #903 (v3) to v2.x, format v7. An IndexedDB-backed
BrowserDbno longer acknowledges a write over pages that never reached IndexedDB (#894).STG-048naming the IndexedDB write and the DOM exception (e.g.QuotaExceededError); a preparation failure keeps its own code.executewrites,checkpoint()andimportGraph()reject withSTG-046and change nothing. Queries, rules andexportGraph()keep working; reopening shows the state before the failed write.checkpoint()waits for earlier in-flight flushes.STG-046andSTG-048with the v3 code, title and text. ERROR_REFERENCE describes only the IndexedDB browser path, since v2 native has no failed-handle rule.close(), or any other v3 code or API. No file-format, IndexedDB schema or public-method change.Verification
cargo test: 1,326 passed, 9 ignored.cargo fmt --checkclean.mainand pass here.Refs #894 (stays open until a release ships the fix).
🤖 Generated with Claude Code