Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

fix delete_existing for _persist_events #6300

Merged
merged 1 commit into from
Oct 30, 2019
Merged

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Oct 30, 2019

this is part of _retry_on_integrity_error, so should only be on _persist_events_and_state_updates

this is part of _retry_on_integrity_error, so should only be on _persist_events_and_state_updates
@richvdh richvdh requested a review from erikjohnston October 30, 2019 17:31
@@ -82,7 +82,7 @@ def _retry_on_integrity_error(func):
@defer.inlineCallbacks
def f(self, *args, **kwargs):
try:
res = yield func(self, *args, **kwargs)
res = yield func(self, *args, delete_existing=False, **kwargs)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is just to make it more obvious next time we mess it up (the bug only manifests on IntegrityErrors currently)

@richvdh richvdh merged commit 0467f33 into develop Oct 30, 2019
@richvdh richvdh deleted the rav/fix_state_store branch December 1, 2020 12:35
babolivier pushed a commit that referenced this pull request Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants