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

Commit

Permalink
Fix failure to fetch batches of PDUs (#5342)
Browse files Browse the repository at this point in the history
FederationClient.get_pdu is called in a loop to fetch a batch of PDUs. A
failure to fetch one should not result in a failure of the whole batch. Add the
missing `continue`.
  • Loading branch information
richvdh authored Jun 4, 2019
1 parent b4189b1 commit dae224a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/5342.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix failure when fetching batches of events during backfill, etc.
1 change: 1 addition & 0 deletions synapse/federation/federation_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ def get_pdu(self, destinations, event_id, room_version, outlier=False,
"Failed to get PDU %s from %s because %s",
event_id, destination, e,
)
continue
except NotRetryingDestination as e:
logger.info(str(e))
continue
Expand Down

0 comments on commit dae224a

Please sign in to comment.