synapse/changelog.d
Erik Johnston 664409b169
Fix bug in account data replication stream. (#7656)
* Ensure account data stream IDs are unique.

The account data stream is shared between three tables, and the maximum
allocated ID was tracked in a dedicated table. Updating the max ID
happened outside the transaction that allocated the ID, leading to a
race where if the server was restarted then the same ID could be
allocated but the max ID failed to be updated, leading it to be reused.

The ID generators have support for tracking across multiple tables, so
we may as well use that instead of a dedicated table.

* Fix bug in account data replication stream.

If the same stream ID was used in both global and room account data then
the getting updates for the replication stream would fail due to
`heapq.merge(..)` trying to compare a `str` with a `None`. (This is
because you'd have two rows like `(534, '!room')` and `(534, None)` from
the room and global account data tables).

Fix is just to order by stream ID, since we don't rely on the ordering
beyond that. The bug where stream IDs can be reused should be fixed now,
so this case shouldn't happen going forward.

Fixes #7617
2020-06-09 16:28:57 +01:00
..
.gitignore Correct attrs package name in requirements (#3492) 2018-07-07 10:46:59 +10:00
6585.feature Support CS API v0.6.0 (#6585) 2020-06-05 12:27:37 +01:00
6637.feature Add an option to disable autojoin for guest accounts (#6637) 2020-06-05 18:18:15 +01:00
7263.bugfix Allow new users to be registered via the admin API even if the monthly active user limit has been reached (#7263) 2020-06-05 13:08:49 +01:00
7267.bugfix Email notifications for new users when creating via the Admin API. (#7267) 2020-06-01 15:34:33 +01:00
7385.feature allow emails to be passed through SAML (#7385) 2020-05-27 17:40:08 +01:00
7481.feature Add device management to admin API (#7481) 2020-06-05 13:07:22 +01:00
7561.misc Convert identity handler to async/await. (#7561) 2020-05-26 13:46:22 -04:00
7567.misc Improve performance of _get_state_groups_from_groups_txn (#7567) 2020-06-01 15:23:43 +01:00
7575.bugfix Fix incorrect placeholder syntax in database prepartion code (#7575) 2020-05-27 16:26:59 +01:00
7584.misc Newsfile 2020-05-27 19:35:03 +01:00
7585.bugfix Fix a bug in automatic user creation with m.login.jwt. (#7585) 2020-06-01 12:55:07 -04:00
7586.feature Add support for webp thumbnailing (#7586) 2020-06-05 11:54:27 +01:00
7587.doc Update OpenBSD installation instructions (#7587) 2020-05-30 17:08:07 +01:00
7591.misc Add entry to set dependency against psql service (#7591) 2020-05-28 16:02:41 +01:00
7594.bugfix Process cross-signing keys when resyncing device lists (#7594) 2020-06-01 17:47:30 +02:00
7595.misc Performance improvements and refactor of Ratelimiter (#7595) 2020-06-05 10:47:20 +01:00
7597.bugfix Make inflight background metrics more efficient. (#7597) 2020-05-29 13:25:32 +01:00
7599.bugfix Fix 'FederationGroupsRoomsServlet' API when group has room server is not in. (#7599) 2020-05-29 17:49:47 +01:00
7600.misc Convert groups local and server to async/await. (#7600) 2020-06-01 07:28:43 -04:00
7602.doc Advertise Python 3.8 support in setup.py (#7602) 2020-06-01 19:45:01 +01:00
7603.doc Mention #synapse:matrix.org in README troubleshooting (#7603) 2020-06-01 19:45:39 +01:00
7607.bugfix Use upsert when inserting read receipts (#7607) 2020-06-01 10:53:06 +01:00
7609.bugfix Don't fail all of an iteration of the device list retry loop on error (#7609) 2020-06-01 12:55:14 +02:00
7614.misc Clean up exception handling in SAML2ResponseResource (#7614) 2020-06-03 10:41:12 +01:00
7619.misc Replace instances of reactor pumping with get_success. (#7619) 2020-06-03 16:39:30 +01:00
7620.misc async/await get_user_id_by_threepid (#7620) 2020-06-03 17:15:57 +01:00
7621.misc Switch back to upstream dh-virtualenv (#7621) 2020-06-03 12:21:58 +01:00
7622.bugfix Fix exceptions when fetching events from a down host. (#7622) 2020-06-03 14:12:13 +01:00
7623.misc Check the changelog number in check-newsfragment (#7623) 2020-06-03 17:01:43 +01:00
7624.bugfix synctl restart should start synapse if it wasn't running (#7624) 2020-06-03 13:16:15 +01:00
7625.misc Check if the localpart is reserved for guests earlier in the registration flow (#7625) 2020-06-03 16:55:02 +02:00
7628.misc Cleanups to the OpenID Connect integration (#7628) 2020-06-03 21:13:17 +01:00
7629.bugfix Accept device information at the login fallback endpoint. (#7629) 2020-06-08 10:13:24 -04:00
7630.feature Update to the stable SSO prefix for UI Auth. (#7630) 2020-06-05 10:50:08 -04:00
7631.bugfix Advertise the token login type when OpenID Connect is enabled. (#7631) 2020-06-04 06:49:51 -04:00
7634.misc Attempt to fix PhoneHomeStatsTestCase.test_performance_100 being flaky. (#7634) 2020-06-05 07:36:47 -04:00
7637.misc Fix encryption algorithm typos in tests/comments (#7637) 2020-06-04 20:03:40 +01:00
7640.misc Convert user directory handler and related classes to async/await. (#7640) 2020-06-05 14:42:55 -04:00
7644.misc Remove some unused constants. (#7644) 2020-06-05 14:33:35 +01:00
7645.misc Fix type information on assert_*_is_admin methods (#7645) 2020-06-05 14:33:49 +01:00
7647.doc Clarifications to the admin api documentation (#7647) 2020-06-05 17:31:05 +01:00
7649.misc Convert the registration handler to async/await. (#7649) 2020-06-08 11:15:02 -04:00
7656.bugfix Fix bug in account data replication stream. (#7656) 2020-06-09 16:28:57 +01:00