summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <1389908+richvdh@users.noreply.github.com>2021-07-01 18:45:55 +0100
committerGitHub <noreply@github.com>2021-07-01 18:45:55 +0100
commit0aab50c772e9b0df2bf31a5f9381ccb69d060e9c (patch)
tree74b2e35257266f9b93fa99c48482bb340e37b8e7
parentReenable 'Backfilled events whose prev_events...' sytest (#10292) (diff)
downloadsynapse-0aab50c772e9b0df2bf31a5f9381ccb69d060e9c.tar.xz
fix ordering of bg update (#10291)
this was a typo introduced in #10282. We don't want to end up doing the
`replace_stream_ordering_column` update after anything that comes up in
migration 60/03.
-rw-r--r--changelog.d/10291.bugfix1
-rw-r--r--synapse/storage/schema/main/delta/60/01recreate_stream_ordering.sql.postgres2
2 files changed, 2 insertions, 1 deletions
diff --git a/changelog.d/10291.bugfix b/changelog.d/10291.bugfix
new file mode 100644
index 0000000000..7ebda7cdc2
--- /dev/null
+++ b/changelog.d/10291.bugfix
@@ -0,0 +1 @@
+Fix a long-standing bug where Synapse would return errors after 2<sup>31</sup> events were handled by the server.
diff --git a/synapse/storage/schema/main/delta/60/01recreate_stream_ordering.sql.postgres b/synapse/storage/schema/main/delta/60/01recreate_stream_ordering.sql.postgres
index b5fb763ddd..0edc9fe7a2 100644
--- a/synapse/storage/schema/main/delta/60/01recreate_stream_ordering.sql.postgres
+++ b/synapse/storage/schema/main/delta/60/01recreate_stream_ordering.sql.postgres
@@ -42,4 +42,4 @@ INSERT INTO background_updates (ordering, update_name, progress_json, depends_on
 
 -- ... and another to do the switcheroo
 INSERT INTO background_updates (ordering, update_name, progress_json, depends_on) VALUES
-  (6003, 'replace_stream_ordering_column', '{}', 'index_stream_ordering2_ts');
+  (6001, 'replace_stream_ordering_column', '{}', 'index_stream_ordering2_ts');