Skip to main content
← Back to list
01Issue
BugOpenSwamp CLIPublic
AssigneesNone

Relationships

#5100 Writers sharing a remote datastore can push an older version over a newer one and move latest backwards

Opened by stack72 · 11/25/2026

Summary

Two serves (or a serve and a CLI command) sharing one remote datastore number new data versions from their own local cache. A cache that is behind numbers a write N while the remote already holds N or higher, and its push then overwrites the remote's version N, deletes newer versions, and moves the remote latest marker backwards. Every peer that pulls afterwards reads the older record.

Seen in live testing for swamp-club#5087

With two and three swamp serve processes over one S3 (MinIO) bucket and @swamp/s3-datastore:

  • A serve a worker had left pushed its draining and disconnected records over the new serve's enrollment, which had already published the same version numbers. The bucket's latest went back to the disconnected record.
  • With three serves, a stale serve's push rolled the bucket from the live record back to an older one three times, deleting the newer versions each time.
  • After the owning serve restarted, the other serves' boot reconciliation wrote the worker disconnected (owner gone) from caches that had not yet pulled the worker's re-enrollment on the new serve; those writes were what rolled the bucket back.

swamp-club#5087 makes worker records converge on the serve holding the connection (the holder restores the record on its next pull, GC skips live workers), so workers are no longer pruned or refused. The remote can still read stale for up to one poll interval, and history versions are lost.

Expected

A push never moves a data name's remote latest marker below a version the remote already holds, and never deletes versions it did not write. Version numbers allocated for a data name are unique across the writers sharing a datastore. Boot reconciliation on a peer settles another serve's worker record only when the record it settles is the current remote one.

Where

Core push and version allocation (UnifiedDataRepository version numbering, flushTwoPhasePush), the @swamp/s3-datastore push, and serve boot reconciliation's owner-gone settlement.

02Bog Flow
◉OPEN○TRIAGED○IN PROGRESS○SHIPPED

Open

11/25/2026, 7:21:04 PM

No activity in this phase yet.

03Sludge Pulse

Sign in to post a ripple.