synapse/tests
Erik Johnston fef08cbee8
Fix sending out of order POSITION over replication (#16639)
If a worker reconnects to Redis we send out the current positions of all our streams. However, if we're also trying to send out a backlog of RDATA at the same time then we can end up sending a `POSITION` with the current token *before* we've sent all the RDATA before the current token.

This doesn't cause actual bugs as the receiving servers see the POSITION, fetch the relevant rows from the DB, and then ignore the old RDATA as they come in. However, this is inefficient so it'd be better if we didn't  send out-of-order positions
2023-11-16 13:05:09 +00:00
..
api Refactor get_user_by_id (#16316) 2023-09-14 12:46:30 +01:00
app Run pyupgrade for python 3.7 & 3.8. (#16110) 2023-08-15 08:11:20 -04:00
appservice Send the opentracing span information to appservices (#16227) 2023-09-06 15:19:17 -04:00
config Describe which rate limiter was hit in logs (#16135) 2023-08-30 00:39:39 +01:00
crypto Refactor storing of server keys (#16261) 2023-09-12 11:08:04 +01:00
events Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
federation Use full GitHub links instead of bare issue numbers. (#16637) 2023-11-15 08:02:11 -05:00
handlers Add an Admin API to temporarily grant the ability to update an existing cross-signing key without UIA (#16634) 2023-11-15 17:28:10 +00:00
http Use full GitHub links instead of bare issue numbers. (#16637) 2023-11-15 08:02:11 -05:00
logging Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
media Asynchronous Uploads (#15503) 2023-11-15 09:19:24 -05:00
metrics Remove support for Python 3.7 (#15851) 2023-07-05 18:45:42 -05:00
module_api Add new module API for adding custom fields to events unsigned section (#16549) 2023-10-27 09:04:08 +00:00
push Use full GitHub links instead of bare issue numbers. (#16637) 2023-11-15 08:02:11 -05:00
replication Fix sending out of order POSITION over replication (#16639) 2023-11-16 13:05:09 +00:00
rest Add an Admin API to temporarily grant the ability to update an existing cross-signing key without UIA (#16634) 2023-11-15 17:28:10 +00:00
scripts Add more missing type hints to tests. (#15028) 2023-02-08 16:29:49 -05:00
server_notices Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
state Improve state types. (#16395) 2023-09-28 07:01:46 -04:00
storage Fix test not detecting tables with missing primary keys and missing replica identities, then add more replica identities. (#16647) 2023-11-16 12:26:27 +00:00
test_utils Replace simple_async_mock with AsyncMock (#16180) 2023-08-25 09:27:21 -04:00
types Use immutabledict instead of frozendict (#15113) 2023-03-22 17:15:34 +00:00
util Use full GitHub links instead of bare issue numbers. (#16637) 2023-11-15 08:02:11 -05:00
__init__.py Remove redundant "coding: utf-8" lines (#9786) 2021-04-14 15:34:27 +01:00
server.py Use attempt_to_set_autocommit everywhere. (#16615) 2023-11-09 16:19:42 -05:00
test_distributor.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_event_auth.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_federation.py Return an immutable value from get_latest_event_ids_in_room. (#16326) 2023-09-18 09:29:05 -04:00
test_mau.py Bump black from 22.12.0 to 23.1.0 (#15103) 2023-02-22 15:29:09 -05:00
test_phone_home.py Add final type hint to tests.unittest. (#15072) 2023-02-14 14:03:35 -05:00
test_rust.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_server.py Re-introduce the outbound federation proxy (#15913) 2023-07-18 09:49:21 +01:00
test_state.py Bump mypy-zope & mypy. (#16188) 2023-08-29 10:38:56 -04:00
test_terms_auth.py Prepare unit tests for Python 3.12 (#16099) 2023-08-25 15:05:10 -04:00
test_test_utils.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_types.py Add missing type hints to tests. (#15027) 2023-02-08 19:52:37 +00:00
test_visibility.py Update ruff config (#16283) 2023-09-08 11:24:36 -04:00
unittest.py Fix type hint errors from Twisted trunk (#16526) 2023-10-23 14:28:05 -04:00
utils.py Use dbname instead of database for Postgres config. (#16618) 2023-11-09 14:40:45 -05:00