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

Correctly retry replication HTTP requests on timeout #8412

Closed
wants to merge 2 commits into from

Conversation

erikjohnston
Copy link
Member

This, in conjunction with #8400, should hopefully fix #7792. The idea being that we'll keep retrying when we get a timeout (rather than raising).

@@ -196,6 +196,9 @@ async def send_request(instance_name="master", **kwargs):
except CodeMessageException as e:
if e.code != 504 or not cls.RETRY_ON_TIMEOUT:
raise
except RequestTimedOutError:
Copy link
Member

Choose a reason for hiding this comment

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

RequestTimedOutError is a CodeMessageException, so this won't get hit (and is redundant)

Copy link
Member Author

Choose a reason for hiding this comment

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

Gah, I'm getting confused with how the federation client works :/

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks

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.

Concurrent event linearizer doesn't work when using event creator.
2 participants