Skip to content

Recover missing Datawallets during synchronization - #1182

Closed
tnotheis wants to merge 4 commits into
mainfrom
fix/recover-missing-datawallet
Closed

tnotheis wants to merge 4 commits into
mainfrom
fix/recover-missing-datawallet

Conversation

@tnotheis

Copy link
Copy Markdown
Member

Description

The Backbone creates a Datawallet only when a Datawallet version upgrade sync run is finalized. If a Connector is interrupted after creating its identity but before that finalize request succeeds, the local identity remains persisted without a Backbone Datawallet. Every later startup then fails on GET /Datawallet and never retries the creation flow.

When the Backbone explicitly returns error.platform.recordNotFound for GET /Datawallet, the sync controller now recreates the Datawallet at the supported version and includes the still-unpushed local modifications. Other request failures, including unspecific HTTP 404 responses, continue to propagate unchanged.

A regression test covers the recovery path.

Readiness checklist

  • I ensured that the PR title is good enough for the changelog.
  • I labeled the PR.
  • I added tests (if necessary).
  • I self-reviewed the PR.

@tnotheis tnotheis added the bug Something isn't working label Sep 16, 2026
@tnotheis
tnotheis force-pushed the fix/recover-missing-datawallet branch from e61dfb7 to 96bc4d7 Compare September 16, 2026 08:19
@tnotheis tnotheis closed this Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant