aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2022-10-14Dendrite 0.10.3v0.10.3Neil Alexander
commit c6e18c18e93b54c006c6b4d0044aa53a0735a906 Author: Neil Alexander <neilalexander@users.noreply.github.com> Date: Fri Oct 14 15:42:58 2022 +0100 Changelog and version bump
2022-10-14Set inactivity threshold on durable consumers in the roomserver input API ↵Neil Alexander
(#2795) This prevents us from holding onto durable consumers indefinitely for rooms that have long since turned inactive, since they do have a bit of a processing overhead in the NATS Server. If we clear up a consumer and then a room becomes active again, the consumer gets recreated as needed. The threshold is set to 24 hours for now, we can tweak it later if needs be.
2022-10-14Update dependency now that it is fixedNeil Alexander
2022-10-14Update direct dependencies (#2794)Neil Alexander
This updates a number of Dendrite's dependencies.
2022-10-14Update to NATS Server v2.9.3 and nats.go v1.18.0Neil Alexander
2022-10-14Always add `UnreadNotifications` to joined room reponses (#2793)Till
Fixes a minor bug, where we failed to add `UnreadNotifications` to the join response, if it wasn't in `GetUserUnreadNotificationCountsForRooms`.
2022-10-14Relax test a bitTill Faelligen
2022-10-14Fix `outliers whose auth_events are in a different room are correctly ↵Till
rejected` (#2791) Fixes `outliers whose auth_events are in a different room are correctly rejected`, by validating that auth events are all from the same room and not using rejected events for event auth.
2022-10-13Revert "Federation backoff fixes and tests (#2792)"Neil Alexander
This reverts commit dcedd1b6bf1e890ff425bdf1fcd8a2e0850778b5.
2022-10-13Federation backoff fixes and tests (#2792)devonh
This fixes some edge cases where federation queue backoffs and blacklisting weren't behaving as expected. It also adds new tests for the federation queues to ensure their behaviour continues to work correctly.
2022-10-13Event relations (#2790)Neil Alexander
This adds support for tracking `m.relates_to`, as well as adding support for the various `/room/{roomID}/relations/...` endpoints to the CS API.
2022-10-11Fix `/get_missing_events` for rooms with `joined`/`invited` ↵Till
history_visibility (#2787) Sytest was using a wrong `history_visibility` for `invited` (https://github.com/matrix-org/sytest/pull/1303), so `invited` was passing for the wrong reason (-> defaulted to `shared`, as `invite` wasn't understood). This change now handles missing events like Synapse, if a server isn't allowed to see the event, it gets a redacted version of it, making the `get_missing_events` tests pass.
2022-10-11Private read receipts (#2789)Neil Alexander
Implement behaviours for `m.read.private` receipts.
2022-10-11Tweak `GetStateDeltas` behaviour (#2788)Neil Alexander
Improves the control flow of `GetStateDeltas` for clarity and possibly also fixes a bug where duplicate state delta entries could be inserted with different memberships instead of being correctly overridden by `join`.
2022-10-11Tweak federation `M_NOT_FOUND` errorsNeil Alexander
2022-10-10Fix joined hosts with `RewritesState` (#2785)Neil Alexander
This ensures that the joined hosts in the federation API are correct after the state is rewritten. This might fix some races around the time of joining federated rooms.
2022-10-10Send E2EE related errors to sentry (#2784)Till
Only sends errors if we're not retrying them in NATS. Not sure if those should be scoped/tagged with something like "E2EE".
2022-10-10CI updateTill Faelligen
2022-10-10SyTest List MaintenanceTill Faelligen
2022-10-10Move /event to the SyncAPI (#2782)Till
This allows us to apply history visibility without having to recalculate it in the roomserver. Unblocks https://github.com/matrix-org/complement/pull/495, fix missing part of https://github.com/matrix-org/dendrite/issues/617
2022-10-10Tweak `GetAccountByPassword` moreNeil Alexander
2022-10-10Further tweak to the issue templateNeil Alexander
2022-10-10Update issue and pull request templatesNeil Alexander
2022-10-10Add regression test for 980fa55846811eeff89f116c49b38b085143c64eNeil Alexander
2022-10-10Stronger passwordless account checks (fixes #2780)Neil Alexander
2022-10-07Version 0.10.2 (#2778)v0.10.2Neil Alexander
Changelog and version bump.
2022-10-07Fix issue with DMs shown as normal rooms (#2776)Till
Fixes #2121, test added in https://github.com/matrix-org/complement/pull/494
2022-10-07Revert "tDatabase transaction tweaks in roomserver"Neil Alexander
This reverts commit 8d8f4689a0c71f79051554e69fb9113592a4b2e4.
2022-10-07Ensure we only wake up a given user once (#2775)Neil Alexander
This ensures that the sync API notifier only wakes up a given user once for a given stream position.
2022-10-07tDatabase transaction tweaks in roomserverNeil Alexander
2022-10-07Add test for `QueryDeviceMessages` (#2773)Till
Adds tests for `QueryDeviceMessages` and also includes some optimizations to reduce allocations in the DB layer.
2022-10-07Update READMETill Faelligen
2022-10-06Use the stream positions of the notifier (#2768)Till
Use the stream positions of the notifier, which might have advanced since setting it at the beginning of the loop. This possibly helps in reducing roundtrips to the SyncAPI, just because we didn't fetch the latest data. Also fixes a minor oversight in the receipts stream.
2022-10-06Allow specifying old signing keys with the public key and key ID only (#2770)Neil Alexander
If the private key file is lost, it's often possible to retrieve the public key from another server elsewhere, so we should make it possible to configure it in that way.
2022-10-06Always return `one_time_key_counts` on `/keys/upload` (#2769)Till
The OTK count is [required](https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysupload) in responses to `/keys/upload`, so return those.
2022-10-06Don't try to talk to ourselves when finding missing eventsNeil Alexander
2022-10-06Tweak logging for federated room joinsNeil Alexander
2022-10-05Document database connection limitsNeil Alexander
2022-10-05Remove empty fields from `/sync` response (#2755)Till
First attempt at removing empty fields from `/sync` responses. Needs https://github.com/matrix-org/sytest/pull/1298 to keep Sytest happy. Co-authored-by: Neil Alexander <neilalexander@users.noreply.github.com>
2022-10-05Optimise `QuerySharedUsers` so that we can only work on local users (#2766)Neil Alexander
Otherwise the sync API key change consumer wastes a lot of time trying to wake up the notifiers for non-local users.
2022-10-05Demote `Failed to query device keys for some users` warning to `level=debug`Neil Alexander
Many of these warnings are due to dead servers and are quite annoying when they fill up the logs.
2022-10-05Add `RoomEventType` nats.Header to avoid unneeded unmarshalling (#2765)Till
2022-10-05Check PostgreSQL connection count (#2760)Neil Alexander
This PR queries PostgreSQL for the `max_connections` and `superuser_reserved_connections` settings and then ensures that Dendrite's `max_open_conns` doesn't exceed the allowed value. This is a really common source of configuration problems and can either result in blocking queries or deadlocks, so it seems reasonable that we complain as loudly as possible when it happens.
2022-10-05Side effect import bleve analyzer languages (#2763)Till
... to actually allow different languages. Fixes #2761 Binary size increases by ~1MB.
2022-10-04Add indexes that optimise `selectStateInRangeSQL` (#2764)Neil Alexander
This gets rid of some expensive scans on `add_state_ids` and `remove_state_ids`, turning them into much cheaper and faster index scans instead.
2022-10-04Don't perform a federated join after invite if we are already joined to the ↵Neil Alexander
room (#2762) If we are already joined to the room then it shouldn't matter if you were invited or not, so this looks like a bug.
2022-10-04Track reasons why the process is in a degraded stateNeil Alexander
2022-10-04Reduce `max_open_conns` in monolith sample configNeil Alexander
2022-10-04Revert Docker changesNeil Alexander
2022-10-04Try to populate `-ldflags` in Docker buildsNeil Alexander