642199570c 
								
									
								
							
								 
							
						 
						
							
							
								
								Improve the logging when handling a federation transaction ( #3904 )  
							
							... 
							
							
							
							Let's try to rationalise the logging that happens when we are processing an
incoming transaction, to make it easier to figure out what is going wrong when
they take ages. In particular:
- make everything start with a [room_id event_id] prefix
- make sure we log a warning when catching exceptions rather than just turning
  them into other, more cryptic, exceptions. 
							
						 
						
							2018-09-19 17:28:18 +01:00  
				
					
						
							
							
								 
						
							
							
								550007cb0e 
								
							
								 
							
						 
						
							
							
								
								Bump timeout on get_missing_events request  
							
							
							
						 
						
							2018-09-18 15:02:51 +01:00  
				
					
						
							
							
								 
						
							
							
								2608ebc04c 
								
									
								
							
								 
							
						 
						
							
							
								
								Port handlers/ to Python 3 ( #3803 )  
							
							
							
						 
						
							2018-09-07 00:22:23 +10:00  
				
					
						
							
							
								 
						
							
							
								5c261107c9 
								
							
								 
							
						 
						
							
							
								
								Remove unnecessary resolve_events_with_state_map  
							
							... 
							
							
							
							We only ever used the synchronous resolve_events_with_state_map in one
place, which is trivial to replace with the async version. 
							
						 
						
							2018-08-22 15:41:15 +01:00  
				
					
						
							
							
								 
						
							
							
								4d664278af 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_state_handler  
							
							
							
						 
						
							2018-08-20 14:49:43 +01:00  
				
					
						
							
							
								 
						
							
							
								8dee601054 
								
							
								 
							
						 
						
							
							
								
								Remove redundant room_version checks  
							
							
							
						 
						
							2018-08-20 14:48:53 +01:00  
				
					
						
							
							
								 
						
							
							
								66f7dc8c87 
								
							
								 
							
						 
						
							
							
								
								Fix logcontexts for running pushers  
							
							... 
							
							
							
							First of all, avoid resetting the logcontext before running the pushers, to fix
the "Starting db txn 'get_all_updated_receipts' from sentinel context" warning.
Instead, give them their own "background process" logcontexts. 
							
						 
						
							2018-08-17 00:32:39 +01:00  
				
					
						
							
							
								 
						
							
							
								ef184caf30 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_federation  
							
							
							
						 
						
							2018-08-15 14:25:46 +01:00  
				
					
						
							
							
								 
						
							
							
								488ffe6fdb 
								
							
								 
							
						 
						
							
							
								
								Use federation handler function rather than duplicate  
							
							... 
							
							
							
							This involves renaming _persist_events to be a public function. 
							
						 
						
							2018-08-15 14:17:18 +01:00  
				
					
						
							
							
								 
						
							
							
								b37c472419 
								
									
								
							
								 
							
						 
						
							
							
								
								Rename async to async_helpers because `async` is a keyword on Python 3.7 ( #3678 )  
							
							
							
						 
						
							2018-08-10 23:50:21 +10:00  
				
					
						
							
							
								 
						
							
							
								ce6db0e547 
								
							
								 
							
						 
						
							
							
								
								Choose state algorithm based on room version  
							
							
							
						 
						
							2018-08-09 14:58:47 +01:00  
				
					
						
							
							
								 
						
							
							
								b179537f2a 
								
							
								 
							
						 
						
							
							
								
								Move clean_room_for_join to master  
							
							
							
						 
						
							2018-08-09 10:37:38 +01:00  
				
					
						
							
							
								 
						
							
							
								5785b93711 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_federation  
							
							
							
						 
						
							2018-08-09 10:16:16 +01:00  
				
					
						
							
							
								 
						
							
							
								a3f5bf79a0 
								
							
								 
							
						 
						
							
							
								
								Add EDU/query handling over replication  
							
							
							
						 
						
							2018-08-06 15:23:31 +01:00  
				
					
						
							
							
								 
						
							
							
								e26dbd82ef 
								
							
								 
							
						 
						
							
							
								
								Add replication APIs for persisting federation events  
							
							
							
						 
						
							2018-08-06 15:02:28 +01:00  
				
					
						
							
							
								 
						
							
							
								f900d50824 
								
							
								 
							
						 
						
							
							
								
								include known room versions in outgoing make_joins  
							
							
							
						 
						
							2018-08-06 13:45:37 +01:00  
				
					
						
							
							
								 
						
							
							
								704c3e6239 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'master' into develop  
							
							
							
						 
						
							2018-08-02 15:43:30 +01:00  
				
					
						
							
							
								 
						
							
							
								14fa9d4d92 
								
							
								 
							
						 
						
							
							
								
								Avoid extra db lookups  
							
							... 
							
							
							
							Since we're about to look up the events themselves anyway, we can skip the
extra db queries here. 
							
						 
						
							2018-08-02 13:55:51 +01:00  
				
					
						
							
							
								 
						
							
							
								0a65450d04 
								
							
								 
							
						 
						
							
							
								
								Validation for events/rooms in fed requests  
							
							... 
							
							
							
							When we get a federation request which refers to an event id, make sure that
said event is in the room the caller claims it is in.
(patch supplied by @turt2live) 
							
						 
						
							2018-08-02 13:48:40 +01:00  
				
					
						
							
							
								 
						
							
							
								40c1c59cf4 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3621  from matrix-org/erikj/split_fed_store  
							
							... 
							
							
							
							Split out DB writes in federation handler 
							
						 
						
							2018-08-02 10:41:42 +01:00  
				
					
						
							
							
								 
						
							
							
								a6d7b74915 
								
							
								 
							
						 
						
							
							
								
								update docs  
							
							
							
						 
						
							2018-08-01 13:39:14 +01:00  
				
					
						
							
							
								 
						
							
							
								4b256b9271 
								
							
								 
							
						 
						
							
							
								
								_persist_auth_tree no longer returns anything  
							
							
							
						 
						
							2018-08-01 13:39:07 +01:00  
				
					
						
							
							
								 
						
							
							
								bdbdceeafa 
								
							
								 
							
						 
						
							
							
								
								rename replication_layer to federation_client  
							
							... 
							
							
							
							I have HAD ENOUGH of trying to remember wtf a replication layer is in terms of
classes. 
							
						 
						
							2018-07-31 15:44:05 +01:00  
				
					
						
							
							
								 
						
							
							
								143f1a2532 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_fed_store  
							
							
							
						 
						
							2018-07-30 09:56:18 +01:00  
				
					
						
							
							
								 
						
							
							
								d8e65ed7e1 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix a minor documentation typo in on_make_leave  
							
							
							
						 
						
							2018-07-25 15:44:41 -06:00  
				
					
						
							
							
								 
						
							
							
								78a691d005 
								
							
								 
							
						 
						
							
							
								
								Split out DB writes in federation handler  
							
							... 
							
							
							
							This will allow us to easily add an internal replication API to proxy
these reqeusts to master, so that we can move federation APIs to
workers. 
							
						 
						
							2018-07-25 16:22:56 +01:00  
				
					
						
							
							
								 
						
							
							
								c1f80effbe 
								
							
								 
							
						 
						
							
							
								
								Handle delta_ids being None in _update_context_for_auth_events  
							
							... 
							
							
							
							it's easier to create the new state group as a delta from the existing one.
(There's an outside chance this will help with
https://github.com/matrix-org/synapse/issues/3364 ) 
							
						 
						
							2018-07-23 22:06:50 +01:00  
				
					
						
							
							
								 
						
							
							
								027bc01a1b 
								
							
								 
							
						 
						
							
							
								
								Add support for updating state  
							
							
							
						 
						
							2018-07-23 13:17:25 +01:00  
				
					
						
							
							
								 
						
							
							
								e42510ba63 
								
							
								 
							
						 
						
							
							
								
								Use new getters  
							
							
							
						 
						
							2018-07-23 13:17:22 +01:00  
				
					
						
							
							
								 
						
							
							
								3132b89f12 
								
									
								
							
								 
							
						 
						
							
							
								
								Make the rest of the .iterwhatever go away ( #3562 )  
							
							
							
						 
						
							2018-07-21 15:47:18 +10:00  
				
					
						
							
							
								 
						
							
							
								dab00faa83 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3367  from matrix-org/rav/drop_re_signing_hacks  
							
							... 
							
							
							
							Remove event re-signing hacks 
							
						 
						
							2018-07-18 12:46:27 +01:00  
				
					
						
							
							
								 
						
							
							
								ea69d35651 
								
							
								 
							
						 
						
							
							
								
								Move filter_events_for_server out of FederationHandler  
							
							... 
							
							
							
							for easier unit testing. 
							
						 
						
							2018-07-16 13:06:24 +01:00  
				
					
						
							
							
								 
						
							
							
								49af402019 
								
							
								 
							
						 
						
							
							
								
								run isort  
							
							
							
						 
						
							2018-07-09 16:09:20 +10:00  
				
					
						
							
							
								 
						
							
							
								a4ab491371 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into rav/drop_re_signing_hacks  
							
							
							
						 
						
							2018-07-04 07:13:38 +01:00  
				
					
						
							
							
								 
						
							
							
								99800de63d 
								
							
								 
							
						 
						
							
							
								
								try and clean up  
							
							
							
						 
						
							2018-06-27 11:40:27 +01:00  
				
					
						
							
							
								 
						
							
							
								f03a5d1a17 
								
							
								 
							
						 
						
							
							
								
								pep8  
							
							
							
						 
						
							2018-06-27 11:38:14 +01:00  
				
					
						
							
							
								 
						
							
							
								a7ecf34b70 
								
							
								 
							
						 
						
							
							
								
								cleanups  
							
							
							
						 
						
							2018-06-27 11:36:03 +01:00  
				
					
						
							
							
								 
						
							
							
								77078d6c8e 
								
							
								 
							
						 
						
							
							
								
								handle federation not telling us about prev_events  
							
							
							
						 
						
							2018-06-27 11:27:32 +01:00  
				
					
						
							
							
								 
						
							
							
								df48f7ef37 
								
							
								 
							
						 
						
							
							
								
								Actually fix it  
							
							
							
						 
						
							2018-06-25 20:03:41 +01:00  
				
					
						
							
							
								 
						
							
							
								a0e8a53c6d 
								
							
								 
							
						 
						
							
							
								
								Comment  
							
							
							
						 
						
							2018-06-25 19:57:38 +01:00  
				
					
						
							
							
								 
						
							
							
								7bdc5c8fa3 
								
							
								 
							
						 
						
							
							
								
								Fix bug with assuming wrong type  
							
							
							
						 
						
							2018-06-25 19:56:02 +01:00  
				
					
						
							
							
								 
						
							
							
								ea7a9c0483 
								
							
								 
							
						 
						
							
							
								
								Add fast path to _filter_events_for_server  
							
							... 
							
							
							
							Most rooms have a trivial history visibility like "shared" or
"world_readable", especially large rooms, so lets not bother getting the
full membership of those rooms in that case. 
							
						 
						
							2018-06-25 19:49:13 +01:00  
				
					
						
							
							
								 
						
							
							
								244484bf3c 
								
							
								 
							
						 
						
							
							
								
								Revert "Revert "Merge pull request  #3431  from matrix-org/rav/erasure_visibility""  
							
							... 
							
							
							
							This reverts commit 1d009013b3 
							
						 
						
							2018-06-25 13:42:55 +01:00  
				
					
						
							
							
								 
						
							
							
								1d009013b3 
								
							
								 
							
						 
						
							
							
								
								Revert "Merge pull request  #3431  from matrix-org/rav/erasure_visibility"  
							
							... 
							
							
							
							This reverts commit ce0d911156b4a5d767a9 
							
						 
						
							2018-06-22 16:35:10 +01:00  
				
					
						
							
							
								 
						
							
							
								ce0d911156 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3431  from matrix-org/rav/erasure_visibility  
							
							... 
							
							
							
							Support hiding events from deleted users 
							
						 
						
							2018-06-22 15:06:44 +01:00  
				
					
						
							
							
								 
						
							
							
								b4a5d767a9 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #3428  from matrix-org/erikj/persisted_pdu  
							
							... 
							
							
							
							Simplify get_persisted_pdu 
							
						 
						
							2018-06-22 14:47:43 +01:00  
				
					
						
							
							
								 
						
							
							
								a61738b316 
								
									
								
							
								 
							
						 
						
							
							
								
								Remove run_on_reactor ( #3395 )  
							
							
							
						 
						
							2018-06-14 18:27:37 +10:00  
				
					
						
							
							
								 
						
							
							
								b6faef2ad7 
								
							
								 
							
						 
						
							
							
								
								Filter out erased messages  
							
							... 
							
							
							
							Redact any messges sent by erased users. 
							
						 
						
							2018-06-12 09:53:18 +01:00  
				
					
						
							
							
								 
						
							
							
								9fc5b74b24 
								
							
								 
							
						 
						
							
							
								
								simplify get_persisted_pdu  
							
							... 
							
							
							
							it doesn't make much sense to use get_persisted_pdu on the receive path: just
get the event straight from the store. 
							
						 
						
							2018-06-12 09:51:31 +01:00  
				
					
						
							
							
								 
						
							
							
								0834b49c6a 
								
							
								 
							
						 
						
							
							
								
								Fix event filtering in get_missing_events handler  
							
							
							
						 
						
							2018-06-08 11:34:46 +01:00