synapse/changelog.d
Eric Eastwood 0f971ca68e
Update `get_pdu` to return the original, pristine `EventBase` (#13320)
Update `get_pdu` to return the untouched, pristine `EventBase` as it was originally seen over federation (no metadata added). Previously, we returned the same `event` reference that we stored in the cache which downstream code modified in place and added metadata like setting it as an `outlier`  and essentially poisoned our cache. Now we always return a copy of the `event` so the original can stay pristine in our cache and re-used for the next cache call.

Split out from https://github.com/matrix-org/synapse/pull/13205

As discussed at:

 - https://github.com/matrix-org/synapse/pull/13205#discussion_r918365746
 - https://github.com/matrix-org/synapse/pull/13205#discussion_r918366125

Related to https://github.com/matrix-org/synapse/issues/12584. This PR doesn't fix that issue because it hits [`get_event` which exists from the local database before it tries to `get_pdu`](7864f33e28/synapse/federation/federation_client.py (L581-L594)).
2022-07-20 15:58:51 -05:00
..
.gitignore
12942.misc
12943.misc
12967.removal
13038.feature
13094.misc
13172.misc
13175.misc
13192.removal
13198.misc
13208.feature
13215.misc
13218.misc
13220.feature
13224.misc
13231.doc
13233.doc
13239.removal
13240.misc
13242.misc
13251.misc
13253.misc
13254.misc
13255.misc
13257.misc
13258.misc
13260.misc
13261.doc
13263.bugfix
13266.misc
13267.misc
13270.bugfix
13271.doc
13274.misc
13276.feature
13278.bugfix
13279.misc
13281.misc
13284.misc
13285.misc
13296.bugfix
13297.misc
13299.misc Improve performance of query ` _get_subset_users_in_room_with_profiles` (#13299) 2022-07-18 12:35:45 -07:00
13300.misc
13303.misc
13307.misc
13308.misc
13310.misc
13311.misc
13314.doc
13318.misc
13320.misc
13323.misc Reduce memory usage of state group cache (#13323) 2022-07-19 14:40:37 +01:00
13326.removal
13328.misc