forked-synapse/synapse/storage
Erik Johnston 59fa91fe88 Retry event persistence on IntegrityError
Due to a bug in the porting script some backfilled events were not
correctly persisted, causing irrecoverable IntegrityErrors on future
attempts to persist those events.

This commit adds a retry mechanism invoked upon IntegrityError,
where when retried the tables are purged for all references to the
events being persisted.
2016-08-04 15:02:15 +01:00
..
engines Optionally make committing to postgres asynchronous. 2016-06-20 17:53:38 +01:00
schema Default device_display_name to null 2016-08-03 11:53:00 +01:00
util Add tests for redactions 2016-04-07 16:52:07 +01:00
__init__.py Add device_id support to /login 2016-07-18 16:39:44 +01:00
_base.py More doc-comments 2016-07-20 16:40:28 +01:00
account_data.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
appservice.py Fix AS retries, but with correct ordering 2016-06-07 10:24:50 +01:00
background_updates.py fix: defer.returnValue takes one argument 2016-07-25 16:04:45 +01:00
client_ips.py PEP8 2016-07-22 13:21:07 +01:00
devices.py Implement updating devices 2016-07-26 07:35:48 +01:00
directory.py Bump get_aliases_for_room cache 2016-03-22 14:08:13 +00:00
end_to_end_keys.py PEP8 2016-08-03 15:42:08 +01:00
event_federation.py Use computed prev event ids 2016-04-01 17:39:32 +01:00
event_push_actions.py Fix SQL to supply arguments in the same order 2016-07-29 09:57:13 +01:00
events.py Retry event persistence on IntegrityError 2016-08-04 15:02:15 +01:00
filtering.py Cache filters 2016-01-28 17:09:09 +00:00
keys.py Add more key storage funcs into slave store 2016-07-28 15:41:26 +01:00
media_repository.py Implement purge_media_cache admin API 2016-06-29 14:57:59 +01:00
openid.py Add an openidish mechanism for proving to third parties that you own a given user_id 2016-05-05 13:42:44 +01:00
prepare_database.py Track approximate last access time for remote media 2016-06-29 11:41:20 +01:00
presence.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
profile.py Add the create_profile method back since the tests use it 2016-06-17 19:20:47 +01:00
push_rule.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
pusher.py Only get local users 2016-06-03 11:04:31 +01:00
receipts.py Merge pull request #809 from matrix-org/erikj/cache_receipts_in_room 2016-06-03 10:58:24 +01:00
registration.py Fix typo 2016-07-26 13:32:15 +01:00
rejections.py copyrights 2016-01-07 04:26:29 +00:00
room.py more pep8 2016-06-24 11:45:23 +01:00
roommember.py Remove dead code. 2016-06-07 15:07:11 +01:00
search.py Remove event fetching from DB threads 2016-06-03 17:22:13 +01:00
signatures.py Cache get_event_reference_hashes 2016-05-31 15:32:32 +01:00
state.py Only update the events and event_json tables for rejected events 2016-07-25 18:44:30 +01:00
stream.py Comment 2016-07-20 10:18:09 +01:00
tags.py Don't hit DB for noop replications queries 2016-06-08 11:33:30 +01:00
transactions.py Fix a couple of bugs in the transaction and keyring code 2016-07-26 19:19:08 +01:00