0467f33584 
								
									
								
							
								 
							
						 
						
							
							
								
								fix delete_existing for _persist_events ( #6300 )  
							
							... 
							
							
							
							this is part of _retry_on_integrity_error, so should only be on _persist_events_and_state_updates 
							
						 
						
							2019-10-30 18:05:00 +00:00  
				
					
						
							
							
								 
						
							
							
								ec6de1cc7d 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/split_out_persistence_store  
							
							
							
						 
						
							2019-10-30 13:37:04 +00:00  
				
					
						
							
							
								 
						
							
							
								a8d16f6c00 
								
							
								 
							
						 
						
							
							
								
								Review comments  
							
							
							
						 
						
							2019-10-30 13:36:12 +00:00  
				
					
						
							
							
								 
						
							
							
								2c35ffead2 
								
							
								 
							
						 
						
							
							
								
								Port receipt and read markers to async/wait  
							
							
							
						 
						
							2019-10-29 15:08:22 +00:00  
				
					
						
							
							
								 
						
							
							
								561133c3c5 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #6263  from matrix-org/erikj/caches_return_deferreds  
							
							... 
							
							
							
							Quick fix to ensure cache descriptors always return deferreds 
							
						 
						
							2019-10-29 12:53:21 +01:00  
				
					
						
							
							
								 
						
							
							
								e419c44ba4 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'release-v1.5.0' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2019-10-29 11:41:27 +00:00  
				
					
						
							
							
								 
						
							
							
								342d871d76 
								
							
								 
							
						 
						
							
							
								
								Make room directory search case insensitive  
							
							
							
						 
						
							2019-10-29 10:24:02 +00:00  
				
					
						
							
							
								 
						
							
							
								14504ad573 
								
									
								
							
								 
							
						 
						
							
							
								
								Add CI for synapse_port_db ( #6140 )  
							
							... 
							
							
							
							This adds:
* a test sqlite database
* a configuration file for the sqlite database
* a configuration file for a postgresql database (using the credentials in `.buildkite/docker-compose.pyXX.pgXX.yaml`)
as well as a new script named `.buildkite/scripts/test_synapse_port_db.sh` that:
1. installs Synapse
2. updates the test sqlite database to the latest schema and runs background updates on it
3. creates an empty postgresql database
4. run the `synapse_port_db` script to migrate the test sqlite database to the empty postgresql database (with coverage)
Step `2` is done via a new script located at `scripts-dev/update_database`.
The test sqlite database is extracted from a SyTest run, so that it can be considered as an actual homeserver's database with actual data in it. 
							
						 
						
							2019-10-28 17:45:32 +00:00  
				
					
						
							
							
								 
						
							
							
								d0d8a22c13 
								
							
								 
							
						 
						
							
							
								
								Quick fix to ensure cache descriptors always return deferreds  
							
							
							
						 
						
							2019-10-28 13:33:04 +00:00  
				
					
						
							
							
								 
						
							
							
								9aee28927b 
								
							
								 
							
						 
						
							
							
								
								Convert EventContext to attrs ( #6218 )  
							
							... 
							
							
							
							* make EventContext use an attr 
							
						 
						
							2019-10-28 14:29:55 +02:00  
				
					
						
							
							
								 
						
							
							
								da78f61778 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #6253  from matrix-org/uhoreg/e2e_backup_delete_keys  
							
							... 
							
							
							
							delete keys when deleting backup versions 
							
						 
						
							2019-10-25 11:28:11 -04:00  
				
					
						
							
							
								 
						
							
							
								a71b8c87ec 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'release-v1.5.0' of github.com:matrix-org/synapse into develop  
							
							
							
						 
						
							2019-10-25 11:32:24 +01:00  
				
					
						
							
							
								 
						
							
							
								a411f2b177 
								
							
								 
							
						 
						
							
							
								
								Fix /keys/query API on workers.  
							
							... 
							
							
							
							The necessary getters were added only to the master store and not the
worker stores. 
							
						 
						
							2019-10-25 11:08:03 +01:00  
				
					
						
							
							
								 
						
							
							
								44ab048cfe 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #6251  from matrix-org/michaelkaye/debug_guard_logging  
							
							... 
							
							
							
							Reduce debug logging overhead 
							
						 
						
							2019-10-25 10:05:44 +01:00  
				
					
						
							
							
								 
						
							
							
								848cd388d9 
								
							
								 
							
						 
						
							
							
								
								delete keys when deleting backups  
							
							
							
						 
						
							2019-10-24 21:21:51 -04:00  
				
					
						
							
							
								 
						
							
							
								e4d98188da 
								
							
								 
							
						 
						
							
							
								
								Address codestyle concerns  
							
							
							
						 
						
							2019-10-24 18:43:13 +01:00  
				
					
						
							
							
								 
						
							
							
								9eebc1e73b 
								
							
								 
							
						 
						
							
							
								
								use %r to __repr__ objects  
							
							... 
							
							
							
							This avoids calculating __repr__ unless we are going to log. 
							
						 
						
							2019-10-24 18:18:56 +01:00  
				
					
						
							
							
								 
						
							
							
								39266a9c9f 
								
							
								 
							
						 
						
							
							
								
								Make user/room stats log line less verbose.  
							
							
							
						 
						
							2019-10-24 17:55:53 +01:00  
				
					
						
							
							
								 
						
							
							
								3aa2a90556 
								
							
								 
							
						 
						
							
							
								
								Move schema delta files to the correct data store.  
							
							... 
							
							
							
							They were put in the global schema delta directory due to a bad merge. 
							
						 
						
							2019-10-24 16:45:03 +01:00  
				
					
						
							
							
								 
						
							
							
								73cf63784b 
								
							
								 
							
						 
						
							
							
								
								Add DataStores and Storage classes.  
							
							
							
						 
						
							2019-10-23 16:15:03 +01:00  
				
					
						
							
							
								 
						
							
							
								22a9847670 
								
							
								 
							
						 
						
							
							
								
								Move persist_events out from main data store.  
							
							... 
							
							
							
							This is in preparation for splitting out of state_groups_state from the
main store into it own one, as persisting events depends on calculating
state. 
							
						 
						
							2019-10-23 13:29:44 +01:00  
				
					
						
							
							
								 
						
							
							
								c17efdc01c 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_stores  
							
							
							
						 
						
							2019-10-22 18:44:29 +01:00  
				
					
						
							
							
								 
						
							
							
								23d62eded2 
								
							
								 
							
						 
						
							
							
								
								Clean up prepare_database.py a bit and add comments  
							
							
							
						 
						
							2019-10-22 18:43:31 +01:00  
				
					
						
							
							
								 
						
							
							
								6cc497f99b 
								
							
								 
							
						 
						
							
							
								
								Delete background_update table creation in main data_store  
							
							
							
						 
						
							2019-10-22 18:02:50 +01:00  
				
					
						
							
							
								 
						
							
							
								1bbc5444a8 
								
							
								 
							
						 
						
							
							
								
								Move README into synapse/storage/__init__.py  
							
							
							
						 
						
							2019-10-22 17:59:31 +01:00  
				
					
						
							
							
								 
						
							
							
								acf47c7698 
								
							
								 
							
						 
						
							
							
								
								Add a basic README to synapse.storage  
							
							
							
						 
						
							2019-10-22 11:55:46 +01:00  
				
					
						
							
							
								 
						
							
							
								bb6264be0b 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/refactor_stores  
							
							
							
						 
						
							2019-10-22 10:41:18 +01:00  
				
					
						
							
							
								 
						
							
							
								ffd24545bb 
								
							
								 
							
						 
						
							
							
								
								Fix schema management to work with multiple data stores.  
							
							
							
						 
						
							2019-10-21 16:08:40 +01:00  
				
					
						
							
							
								 
						
							
							
								c66a06ac6b 
								
							
								 
							
						 
						
							
							
								
								Move storage classes into a main "data store".  
							
							... 
							
							
							
							This is in preparation for having multiple data stores that offer
different functionality, e.g. splitting out state or event storage. 
							
						 
						
							2019-10-21 16:05:06 +01:00  
				
					
						
							
							
								 
						
							
							
								36adfaedab 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into cross-signing_sig_upload  
							
							
							
						 
						
							2019-10-18 18:34:42 +01:00  
				
					
						
							
							
								 
						
							
							
								cfc28325a6 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' into uhoreg/e2e_cross-signing_merged  
							
							
							
						 
						
							2019-10-18 11:39:40 +01:00  
				
					
						
							
							
								 
						
							
							
								f0f6a2b360 
								
							
								 
							
						 
						
							
							
								
								use the right function for when we're already in runInteraction  
							
							
							
						 
						
							2019-10-18 10:56:54 +01:00  
				
					
						
							
							
								 
						
							
							
								06fc66c81e 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #6193  from matrix-org/uhoreg/interpret_device_key_in_storage  
							
							... 
							
							
							
							make storage layer in charge of interpreting the device key data 
							
						 
						
							2019-10-11 15:19:06 -04:00  
				
					
						
							
							
								 
						
							
							
								132b251e29 
								
							
								 
							
						 
						
							
							
								
								expand on comment  
							
							
							
						 
						
							2019-10-11 14:24:52 -04:00  
				
					
						
							
							
								 
						
							
							
								a0d0ba7862 
								
									
								
							
								 
							
						 
						
							
							
								
								Fix MAU reaping where reserved users are specified. ( #6168 )  
							
							
							
						 
						
							2019-10-11 09:38:26 +01:00  
				
					
						
							
							
								 
						
							
							
								7a0dce9259 
								
							
								 
							
						 
						
							
							
								
								make sure we actually return something  
							
							
							
						 
						
							2019-10-10 20:31:30 -04:00  
				
					
						
							
							
								 
						
							
							
								4908fb3b30 
								
							
								 
							
						 
						
							
							
								
								make storage layer in charge of interpreting the device key data  
							
							
							
						 
						
							2019-10-10 19:15:30 -04:00  
				
					
						
							
							
								 
						
							
							
								83d86106a8 
								
									
								
							
								 
							
						 
						
							
							
								
								Merge pull request  #6156  from matrix-org/erikj/postgres_any  
							
							... 
							
							
							
							Use Postgres ANY for selecting many values. 
							
						 
						
							2019-10-10 16:41:36 +01:00  
				
					
						
							
							
								 
						
							
							
								b54b1e759a 
								
							
								 
							
						 
						
							
							
								
								Fix SQLite take 2  
							
							
							
						 
						
							2019-10-10 16:19:40 +01:00  
				
					
						
							
							
								 
						
							
							
								afb6d9d53b 
								
							
								 
							
						 
						
							
							
								
								Fix SQLite  
							
							
							
						 
						
							2019-10-10 15:55:41 +01:00  
				
					
						
							
							
								 
						
							
							
								3bc687508f 
								
							
								 
							
						 
						
							
							
								
								Remove add_in_list_sql_clause  
							
							
							
						 
						
							2019-10-10 15:35:46 +01:00  
				
					
						
							
							
								 
						
							
							
								9d06fb9cb1 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/postgres_any  
							
							
							
						 
						
							2019-10-10 14:38:21 +01:00  
				
					
						
							
							
								 
						
							
							
								8bc529c04d 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/disable_sql_bytes  
							
							
							
						 
						
							2019-10-10 14:30:51 +01:00  
				
					
						
							
							
								 
						
							
							
								b161786c14 
								
							
								 
							
						 
						
							
							
								
								Replace IN usage with helper funcs  
							
							
							
						 
						
							2019-10-10 13:15:49 +01:00  
				
					
						
							
							
								 
						
							
							
								b4fbf71187 
								
							
								 
							
						 
						
							
							
								
								Add helper funcs to use postgres ANY  
							
							... 
							
							
							
							This means that we can write queries with `col = ANY(?)`, which helps
postgres. 
							
						 
						
							2019-10-10 13:15:24 +01:00  
				
					
						
							
							
								 
						
							
							
								91f43dca39 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/disable_sql_bytes  
							
							
							
						 
						
							2019-10-10 13:10:57 +01:00  
				
					
						
							
							
								 
						
							
							
								9970f955ce 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/patch_inner  
							
							
							
						 
						
							2019-10-10 11:51:50 +01:00  
				
					
						
							
							
								 
						
							
							
								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  
				
					
						
							
							
								 
						
							
							
								562b4e51dd 
								
									
								
							
								 
							
						 
						
							
							
								
								Rewrite the user_filter migration again ( #6184 )  
							
							... 
							
							
							
							you can't plausibly ALTER TABLE in sqlite, so we create the new table with the
right schema to start with. 
							
						 
						
							2019-10-10 11:28:23 +01:00  
				
					
						
							
							
								 
						
							
							
								5c1f886c75 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'develop' of github.com:matrix-org/synapse into erikj/patch_inner  
							
							
							
						 
						
							2019-10-09 16:52:21 +01:00