Files
synapse/tests
Coding Assistant ba9dd0f68e test: add regression test for to-device replication drop bug
When another writer advances past the local writer, Stream.get_updates()
early-return path was jumping last_token to current_token (inflated by
the other writer) instead of minimal_local_current_token (the local
writer's actual position). This caused subsequent local writes to be
silently dropped — the streamer sent POSITION instead of RDATA, and
synchrotron workers never woke up for the affected users.

The test creates a real _StreamFromIdGen, triggers the advance, and
asserts that last_token stays at minimal_local_current_token rather
than jumping to the inflated current_token.
2026-05-22 11:15:40 +01:00
..
2026-05-08 14:19:03 +01:00