forked-synapse/tests
Richard van der Hoff a139420a3c
Fix races in room stats (and other) updates. (#6187)
Hopefully this will fix the occasional failures we were seeing in the room directory.

The problem was that events are not necessarily persisted (and `current_state_delta_stream` updated) in the same order as their stream_id. So for instance current_state_delta 9 might be persisted *before* current_state_delta 8. Then, when the room stats saw stream_id 9, it assumed it had done everything up to 9, and never came back to do stream_id 8.

We can solve this easily by only processing up to the stream_id where we know all events have been persisted.
2019-10-10 11:29:01 +01:00
..
api Ensure support users can be registered even if MAU limit is reached 2019-09-11 20:48:31 +03:00
app Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
appservice Refactor the Appservice scheduler code 2019-08-20 11:50:23 +01:00
config Refactor HomeserverConfig so it can be typechecked (#6137) 2019-10-10 09:39:35 +01:00
crypto Replace returnValue with return (#5736) 2019-07-23 23:00:55 +10:00
events Run Black. (#5482) 2019-06-20 19:32:02 +10:00
federation Remove test debugs 2019-08-20 11:46:59 +01:00
handlers Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
http Merge branch 'develop' of github.com:matrix-org/synapse into erikj/reliable_lookups 2019-08-22 13:41:57 +01:00
logging Fix for structured logging tests stomping on logs (#6023) 2019-09-13 02:29:55 +10:00
push Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
replication Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
rest Fix races in room stats (and other) updates. (#6187) 2019-10-10 11:29:01 +01:00
scripts Port register_new_matrix_user to Python 3 and add tests (#4085) 2018-10-26 22:05:22 +11:00
server_notices Remove non-functional 'expire_access_token' setting (#5782) 2019-07-30 08:25:02 +01:00
state Run Black. (#5482) 2019-06-20 19:32:02 +10:00
storage Merge pull request #6146 from matrix-org/erikj/fix_destination_retry_timings 2019-10-02 11:05:22 +01:00
test_utils Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
util Add 'failure_ts' column to 'destinations' table (#6016) 2019-09-17 11:41:54 +01:00
__init__.py Unify v1 and v2 REST client APIs (#5226) 2019-06-03 21:28:59 +10:00
patch_inline_callbacks.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
server.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
test_distributor.py Run black. 2018-08-10 23:54:09 +10:00
test_event_auth.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_federation.py Move logging utilities out of the side drawer of util/ and into logging/ (#5606) 2019-07-04 00:07:04 +10:00
test_mau.py Run Black on the tests again (#5170) 2019-05-10 00:12:11 -05:00
test_metrics.py Add a build info metric to Prometheus (#6005) 2019-09-10 00:14:58 +10:00
test_preview.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_server.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
test_state.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
test_terms_auth.py Refactor code for calculating registration flows (#6106) 2019-09-25 11:32:05 +01:00
test_test_utils.py Run black. 2018-08-10 23:54:09 +10:00
test_types.py Run Black. (#5482) 2019-06-20 19:32:02 +10:00
test_visibility.py Remove test debugs 2019-08-20 11:46:59 +01:00
unittest.py Remove DelayedCall debugging from test runs (#5787) 2019-07-31 20:39:22 +10:00
utils.py Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00