Skip to content

Fix 'evicted' errors#711

Merged
rkistner merged 3 commits into
mainfrom
fix-evicted-error
Jul 7, 2026
Merged

Fix 'evicted' errors#711
rkistner merged 3 commits into
mainfrom
fix-evicted-error

Conversation

@rkistner

@rkistner rkistner commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

When LRUCache entries are evicted while the fetch is still in progress, it cancels the request and results in an unhelpful 'evicted'. We've already sent the db query, so it makes more sense to just wait for the results. This is what the ignoreFetchAbort: true config flag does.

This also change the log message for errors like these, to include the original stack trace instead of just the place where it's wrapped in socket-route.ts.

@rkistner
rkistner requested a review from stevensJourney July 7, 2026 15:53
@changeset-bot

changeset-bot Bot commented Jul 7, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 83ecca2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 12 packages
Name Type
@powersync/service-module-mongodb-storage Patch
@powersync/service-core Patch
@powersync/service-schema Patch
@powersync/service-module-convex Patch
@powersync/service-module-mongodb Patch
@powersync/service-module-mssql Patch
@powersync/service-module-mysql Patch
@powersync/service-module-postgres Patch
@powersync/service-image Patch
@powersync/service-module-core Patch
@powersync/service-module-postgres-storage Patch
test-client Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@stevensJourney stevensJourney left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me :)

@rkistner
rkistner merged commit ea31f64 into main Jul 7, 2026
46 checks passed
@rkistner
rkistner deleted the fix-evicted-error branch July 7, 2026 16:00
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