mirror of
https://github.com/appy-one/acebase.git
synced 2026-05-24 22:01:13 -06:00
[PR #270] [MERGED] Fix: handle failing announced cache lookups #200
Labels
No labels
IndexedDB
browser
bug
dependencies
documentation
duplicate
enhancement
feature request
indexes
indexes
invalid
pull-request
query
question
transaction logging
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/acebase#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/appy-one/acebase/pull/270
Author: @appy-one
Created: 4/14/2026
Status: ✅ Merged
Merged: 4/14/2026
Merged by: @appy-one
Base:
master← Head:fix/handle-failing-announced-cache-lookups📝 Commits (2)
6f8753aFix failing node address lookups never resolving a parent read/write operationdeb4c02Add node info toreadHeadererror message📊 Changes
2 files changed (+20 additions, -13 deletions)
View changed files
📝
src/node-cache.ts(+18 -12)📝
src/storage/binary/index.ts(+2 -1)📄 Description
If a database record is being read from the wrong record address (or has otherwise been corrupted), trying to read the record header fails. Because found node record addresses are cached, a reader will always first request a node's record address from cache. A first cache miss "announces" it so others can simply await the pending lookup instead of doing multiple lookups. In case of a broken record, the lookup fails and the announcement would never be rejected (or resolved). This in turn caused granted read/write locks to become stale, printing warnings about them taking too long, only releasing the locks once they timed out (120 seconds by default), causing other reads and writes being forced to wait. This is now solved by rejecting the announcement upon record read failure.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.