Eric Eastwood
c5b1ce8426
Log maria membership event
2022-10-12 19:45:11 -05:00
Eric Eastwood
0b104e387b
Ordering off because not setting stream_ordering
2022-10-12 19:20:27 -05:00
Eric Eastwood
8a69706a50
Add stream_ordering to debug string
2022-10-12 19:08:21 -05:00
Eric Eastwood
3f8fef2beb
Explain why auth/state necessary here
2022-09-30 00:47:13 -05:00
Eric Eastwood
8f8c1a08d8
WIP: Connect state_chain to prev_event and the batch to the state_chain so everyhting is valid
...
We are going to lose the benefit of keeping the join noise out of the timeline.
And will probably have to hide "historical" state on the client.
2022-09-29 04:12:24 -05:00
Eric Eastwood
5faebbdfcf
Seems to work with Maria
2022-09-29 02:25:42 -05:00
Eric Eastwood
61c1296703
Working once you connect the floating insertion event
2022-09-29 01:53:16 -05:00
Eric Eastwood
1ed0276abf
Simplify case more (no more alice)
2022-09-28 21:29:29 -05:00
Eric Eastwood
aaa9679ae1
Simplify case
2022-09-28 21:27:04 -05:00
Eric Eastwood
cfa5e57aeb
Try chronolgoical which rejects the historical
2022-09-28 21:23:47 -05:00
Eric Eastwood
50b11cb538
I think working same as Complement reverse_chronological, only the insertion event rejected
2022-09-28 21:22:33 -05:00
Eric Eastwood
4dcb2f61f4
Align more to Complement test which does pass
2022-09-28 19:09:29 -05:00
Eric Eastwood
62f35ead9e
Show extra unepexpected events
2022-09-28 18:33:17 -05:00
Eric Eastwood
20f4d1c4f9
Use event_id to compare
2022-09-27 03:10:37 -05:00
Eric Eastwood
6423938350
Better assertion message
2022-09-27 03:03:46 -05:00
Eric Eastwood
7a3ded017c
Test running but no expected results yet
2022-09-27 02:05:43 -05:00
Eric Eastwood
31e2c10355
Non-working test
2022-09-27 01:48:43 -05:00
Eric Eastwood
85451b99c2
Merge branch 'madlittlemods/13356-messages-investigation-scratch-v1' into maddlittlemods/msc2716-many-batches-optimization
...
Conflicts:
synapse/handlers/federation.py
synapse/storage/databases/main/cache.py
synapse/storage/databases/main/event_federation.py
2022-09-26 15:28:14 -05:00
Eric Eastwood
d8899e45a7
Merge branch 'madlittlemods/11850-migrate-to-opentelemetry' into madlittlemods/13356-messages-investigation-scratch-v1
2022-09-26 15:06:30 -05:00
Eric Eastwood
e4b9898dec
Merge branch 'develop' into madlittlemods/11850-migrate-to-opentelemetry
2022-09-26 15:04:08 -05:00
Patrick Cloke
2fae1a3f78
Improve tests for get_unread_push_actions_for_user_in_range_*. ( #13893 )
...
* Adds a docstring.
* Reduces a small amount of duplicated code.
* Improves tests.
2022-09-26 18:28:12 +00:00
Andrew Morgan
58ab96747c
Update the manpage documentation for the hash_password script ( #13911 )
2022-09-26 18:18:41 +00:00
David Robertson
0a38c7ec6d
Snapshot schema 72 ( #13873 )
...
Including another batch of fixes to the schema dump script
2022-09-26 18:28:32 +01:00
Mathieu Velten
41461fd4d6
typing: check origin server of typing event against room's servers ( #13830 )
...
This is also using the partial state approximation if needed so we do
not block here during a fast join.
Signed-off-by: Mathieu Velten <mathieuv@matrix.org >
Co-authored-by: Sean Quah <8349537+squahtx@users.noreply.github.com >
2022-09-26 17:33:32 +02:00
Nick Mills-Barrett
6b4593a80f
Simplify cache invalidation after event persist txn ( #13796 )
...
This moves all the invalidations into a single place and de-duplicates
the code involved in invalidating caches for a given event by using
the base class method.
2022-09-26 16:26:35 +01:00
enterprisey
f34b0bc262
Update NixOS module URL ( #13818 )
...
* Update NixOS module URL
* Create 13818.doc
2022-09-26 15:26:59 +01:00
Erik Johnston
c5defa4cba
Correctly add Cargo.lock to sdsit ( #13909 )
2022-09-26 13:58:10 +00:00
David Robertson
dcdd50e458
Fix mypy errors with latest canonicaljson ( #13905 )
...
* Lockfile: update canonicaljson 1.6.0 -> 1.6.3
* Fix mypy errors with latest canonicaljson
The change to `_encode_json_bytes` definition wasn't sufficient:
```
synapse/http/server.py:751: error: Incompatible types in assignment (expression has type "Callable[[Arg(object, 'json_object')], bytes]", variable has type "Callable[[Arg(object, 'data')], bytes]") [assignment]
```
Which I think is mypy warning us that the two functions accept different
sets of kwargs. Fair enough!
* Changelog
2022-09-26 13:30:00 +01:00
Eric Eastwood
78b44340d6
More debugging
2022-09-24 04:16:56 -05:00
Eric Eastwood
33d12a516f
Debugging
2022-09-24 01:29:11 -05:00
Eric Eastwood
ac1a31740b
Only try to backfill event if we haven't tried before recently ( #13635 )
...
Only try to backfill event if we haven't tried before recently (exponential backoff). No need to keep trying the same backfill point that fails over and over.
Fix https://github.com/matrix-org/synapse/issues/13622
Fix https://github.com/matrix-org/synapse/issues/8451
Follow-up to https://github.com/matrix-org/synapse/pull/13589
Part of https://github.com/matrix-org/synapse/issues/13356
2022-09-23 14:01:29 -05:00
Sean Quah
f49f73c0da
Faster room joins: Avoid blocking /keys/changes ( #13888 )
...
Part of the work for #12993 .
Once #12993 is fully resolved, we expect `/keys/changes` to behave
sensibly when joined to a room with partial state.
Signed-off-by: Sean Quah <seanq@matrix.org >
2022-09-23 17:55:15 +01:00
Eric Eastwood
db868db594
Fix access token leak to logs from proxyagent ( #13855 )
...
This can happen specifically with an application service `/transactions/10722?access_token=leaked` request
Fix https://github.com/matrix-org/synapse/issues/13010
---
Saw an example leak in https://github.com/matrix-org/synapse/issues/13423#issuecomment-1205348482
```
2022-08-04 14:47:57,925 - synapse.http.client - 401 - DEBUG - as-sender-signal-1 - Sending request PUT http://localhost:29328/transactions/10722?access_token= <redacted>
2022-08-04 14:47:57,926 - synapse.http.proxyagent - 223 - DEBUG - as-sender-signal-1 - Requesting b'http://localhost:29328/transactions/10722?access_token=leaked ' via <HostnameEndpoint localhost:29328>
```
2022-09-23 11:49:39 -05:00
Patrick Cloke
e3512a7719
Update Cargo.lock file. ( #13889 )
2022-09-23 11:59:39 -04:00
Patrick Cloke
efd108b45d
Accept & store thread IDs for receipts (implement MSC3771). ( #13782 )
...
Updates the `/receipts` endpoint and receipt EDU handler to parse a
`thread_id` from the body and insert it in the database.
2022-09-23 14:33:28 +00:00
Sean Quah
03c2bfb7f8
Send device list updates out to servers in partially joined rooms ( #13874 )
...
Use the provided list of servers in the room from the `/send_join`
response, since we will not know which users are in the room. This
isn't sufficient to ensure that all remote servers receive the right
device list updates, since the `/send_join` response may be inaccurate
or we may calculate the membership state of new users in the room
incorrectly.
Signed-off-by: Sean Quah <seanq@matrix.org >
2022-09-23 13:44:03 +01:00
reivilibre
c06b2b7142
Faster Remote Room Joins: tell remote homeservers that we are unable to authorise them if they query a room which has partial state on our server. ( #13823 )
2022-09-23 11:47:16 +01:00
reivilibre
ac7e5683d6
Add comments to the Prometheus recording rules to make it clear which set of rules you need for Grafana or Prometheus Console. ( #13876 )
2022-09-23 11:46:45 +01:00
Erik Johnston
c9316f9f76
Merge branch 'release-v1.68' into develop
2022-09-23 10:43:06 +01:00
Erik Johnston
682385917d
Move warnings up
v1.68.0rc2
2022-09-23 09:40:46 +01:00
Erik Johnston
11ebcc8a3a
1.68.0rc2
2022-09-23 09:40:16 +01:00
Eric Eastwood
44e97465e9
Merge branch 'madlittlemods/13856-fix-have-seen-events-not-being-invalidated' into maddlittlemods/msc2716-many-batches-optimization
...
Conflicts:
tests/storage/databases/main/test_events_worker.py
2022-09-23 00:16:50 -05:00
Eric Eastwood
f8dc17b539
Add test to ensure the safety works
2022-09-22 23:05:51 -05:00
Eric Eastwood
b9be6c5b5d
Raise exception so we don't run into this arg mismatch again
2022-09-22 22:48:58 -05:00
Eric Eastwood
4fa8f05344
Add test to make sure we can actually clear entries just by room_id
2022-09-22 22:28:56 -05:00
Eric Eastwood
9fb750dc2f
Better changelog
2022-09-22 21:56:57 -05:00
Eric Eastwood
5b9b645400
Add test description
2022-09-22 21:51:51 -05:00
Eric Eastwood
0cdc7bf432
Fix @cachedList on _have_seen_events_dict
...
As mentioned by @erikjohnston,
https://github.com/matrix-org/synapse/issues/13865#issuecomment-1254751569
2022-09-22 17:36:54 -05:00
Eric Eastwood
2162ab5607
Invalidate cache like #13796
...
Copying what https://github.com/matrix-org/synapse/pull/13796
is doing
2022-09-22 17:18:34 -05:00
Eric Eastwood
1054f91e92
Merge branch 'develop' into madlittlemods/13856-fix-have-seen-events-not-being-invalidated
2022-09-22 17:15:44 -05:00