0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-07-03 09:58:20 +02:00
synapse/changelog.d
Sean Quah 882277008c
Fix background updates failing to add unique indexes on receipts (#14453)
As part of the database migration to support threaded receipts, there is
a possible window in between
`73/08thread_receipts_non_null.sql.postgres` removing the original
unique constraints on `receipts_linearized` and `receipts_graph` and the
`reeipts_linearized_unique_index` and `receipts_graph_unique_index`
background updates from `72/08thread_receipts.sql` completing where
the unique constraints on `receipts_linearized` and `receipts_graph` are
missing. Any emulated upserts on these tables must therefore be
performed with a lock held, otherwise duplicate rows can end up in the
tables when there are concurrent emulated upserts. Fix the missing lock.

Note that emulated upserts no longer happen by default on sqlite, since
the minimum supported version of sqlite supports native upserts by
default now.

Finally, clean up any duplicate receipts that may have crept in before
trying to create the `receipts_graph_unique_index` and
`receipts_linearized_unique_index` unique indexes.

Signed-off-by: Sean Quah <seanq@matrix.org>
2022-11-16 15:01:22 +00:00
..
.gitignore
12947.doc Upload documentation PRs to Netlify (#12947) 2022-11-04 17:08:11 +00:00
13812.misc Run trial tests against Python 3.11 (#13812) 2022-11-01 13:07:54 +00:00
14128.misc Support using SSL on worker endpoints. (#14128) 2022-11-15 12:55:00 +00:00
14197.docker Add all Stream Writer worker types to configure_workers_and_start.py (#14197) 2022-11-08 13:14:00 +00:00
14260.feature Implement MSC3912: Relation-based redactions (#14260) 2022-11-03 16:21:31 +00:00
14292.bugfix Allow PUT/GET of aliases during faster join (#14292) 2022-11-01 15:02:39 +00:00
14293.doc Include additional TURN server example into documentation (#14293) 2022-11-14 17:55:10 +00:00
14294.docker Modernize configure_workers_and_start.py bootstrapping script for Dockerfile-workers. (#14294) 2022-11-09 12:02:15 +00:00
14297.doc Add example on how to load balance /sync requests (#14297) 2022-11-07 13:51:53 +00:00
14313.misc Deal with another batch of GHA warning messages (#14313) 2022-11-01 13:58:39 +00:00
14324.misc Allow override for requesting specific worker types for Complement on command line. (#14324) 2022-11-08 12:34:09 +00:00
14329.misc Bump flake8-bugbear from 22.9.23 to 22.10.27 (#14329) 2022-11-04 18:43:14 +00:00
14339.misc Enable testing MSC3874 in complement. (#14339) 2022-11-01 13:26:28 -04:00
14340.misc Bump twisted from 22.8.0 to 22.10.0 (#14340) 2022-11-01 14:31:12 +00:00
14346.misc Quieter logging for stateres failure at missing prev events (#14346) 2022-11-10 12:17:46 +00:00
14347.bugfix Fix typo in #13320 which could cause log spam (#14347) 2022-11-01 19:20:35 +00:00
14351.misc Use maintained action to install Rust in latest deps/twisted trunk jobs (#14351) 2022-11-02 23:19:57 +00:00
14356.bugfix Send content rules with pattern_type to clients (#14356) 2022-11-15 15:29:30 +00:00
14361.bugfix Correctly create power level event during initial room creation (#14361) 2022-11-07 13:38:50 -08:00
14364.bugfix Fix /refresh endpoint version (#14364) 2022-11-04 16:43:51 +00:00
14369.bugfix Do not reject /sync requests with unrecognised filter fields (#14369) 2022-11-07 13:49:31 +00:00
14370.doc Fix the trigger path for deploying documentation PRs (#14370) 2022-11-04 18:33:01 +00:00
14374.bugfix Fix background update table-scanning events (#14374) 2022-11-07 14:28:00 +00:00
14375.misc Merge/remove Slaved* stores into WorkerStores (#14375) 2022-11-11 10:51:49 +00:00
14378.misc Bump dawidd6/action-download-artifact from 2.15.0 to 2.24.0 (#14378) 2022-11-07 10:27:39 +00:00
14379.misc Bump peaceiris/actions-mdbook from 1.1.14 to 1.2.0 (#14379) 2022-11-07 10:27:52 +00:00
14380.misc Bump regex from 1.6.0 to 1.7.0 (#14380) 2022-11-07 10:28:08 +00:00
14381.misc Bump pyo3 from 0.17.2 to 0.17.3 (#14381) 2022-11-07 10:28:19 +00:00
14382.misc Bump types-setuptools from 65.5.0.1 to 65.5.0.2 (#14382) 2022-11-07 10:28:29 +00:00
14383.misc Bump pillow from 9.2.0 to 9.3.0 (#14383) 2022-11-07 10:28:50 +00:00
14384.misc Bump cryptography from 36.0.1 to 38.0.3 (#14384) 2022-11-07 10:29:08 +00:00
14385.misc Bump types-pyyaml from 6.0.12 to 6.0.12.1 (#14385) 2022-11-07 10:29:16 +00:00
14386.misc Bump types-jsonschema from 4.4.6 to 4.17.0.0 (#14386) 2022-11-07 10:29:26 +00:00
14392.removal Remove support for PostgreSQL 10 (#14392) 2022-11-08 17:17:13 +00:00
14394.misc Test against PostgreSQL 15 in CI (#14394) 2022-11-09 10:32:52 +00:00
14396.feature Build Debian packages for Ubuntu 22.10 Kinetic Kudu (#14396) 2022-11-09 10:33:13 +00:00
14397.removal Drop support for Postgres 10 in full text search code. (#14397) 2022-11-09 09:55:34 -05:00
14398.misc Bump dawidd6/action-download-artifact from 2.24.0 to 2.24.1 (#14398) 2022-11-09 12:16:12 +00:00
14405.feature Add an Admin API endpoint for looking up users based on 3PID (#14405) 2022-11-11 15:38:17 +00:00
14409.bugfix Fix PostgreSQL sometimes using table scans for event_search (#14409) 2022-11-10 19:02:27 +00:00
14410.misc Remove duplicated code to evict entries. (#14410) 2022-11-10 15:33:34 -05:00
14411.misc Clean-up events persistance code (#14411) 2022-11-14 08:13:11 -05:00
14414.doc Update sample Nginx configuration to HTTP 1.1 (#14414) 2022-11-11 17:28:05 +00:00
14417.misc Update docstring to clarify that get_partial_state_events_batch does not just give you completely arbitrary partial-state events. (#14417) 2022-11-15 10:43:17 +00:00
14424.misc Bump dawidd6/action-download-artifact from 2.24.1 to 2.24.2 (#14424) 2022-11-14 10:39:09 +00:00
14425.misc Bump actions/upload-artifact from 2 to 3 (#14425) 2022-11-14 10:39:38 +00:00
14426.misc Bump blake2 from 0.10.4 to 0.10.5 (#14426) 2022-11-14 10:39:55 +00:00
14427.misc Bump attrs from 21.4.0 to 22.1.0 (#14427) 2022-11-14 12:07:44 +00:00
14428.misc Bump types-pyyaml from 6.0.12.1 to 6.0.12.2 (#14428) 2022-11-14 12:10:40 +00:00
14429.misc Bump gitpython from 3.1.27 to 3.1.29 (#14429) 2022-11-14 12:15:35 +00:00
14430.misc Bump types-jsonschema from 4.17.0.0 to 4.17.0.1 (#14430) 2022-11-14 10:41:31 +00:00
14431.misc Bump flake8 from 4.0.1 to 5.0.4 (#14431) 2022-11-14 10:41:55 +00:00
14433.misc Remove unused type-ignores (#14433) 2022-11-14 13:46:29 +00:00
14434.misc Make Dependabot only bump Rust deps in the lock file (#14434) 2022-11-14 14:45:17 +00:00
14436.misc Bump types-setuptools from 65.5.0.2 to 65.5.0.3 (#14436) 2022-11-14 16:34:00 +00:00
14437.misc Bump types-pyopenssl from 22.0.10 to 22.1.0.2 (#14437) 2022-11-14 17:16:53 +00:00
14438.misc Bump flake8-comprehensions from 3.8.0 to 3.10.1 (#14438) 2022-11-14 17:17:19 +00:00
14439.misc Bump jsonschema from 4.16.0 to 4.17.0 (#14439) 2022-11-14 17:17:29 +00:00
14440.misc Bump canonicaljson from 1.6.3 to 1.6.4 (#14440) 2022-11-14 16:35:08 +00:00
14442.feature Include heroes in partial join responses' state (#14442) 2022-11-15 17:35:19 +00:00
14448.bugfix Fix HTML templates missing correct HTML tags (#14448) 2022-11-16 11:14:38 +00:00
14451.misc Fix stub return type of PushRuleEvaluator.run (#14451) 2022-11-16 12:03:05 +00:00
14453.bugfix Fix background updates failing to add unique indexes on receipts (#14453) 2022-11-16 15:01:22 +00:00
14455.misc Fix typechecking errors introduced in #14128 (#14455) 2022-11-15 16:36:43 +00:00
14461.misc Don't filter state in /context response (#14461) 2022-11-16 12:09:33 +00:00