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

Doesn't back off on backfill if remote server returns 404 #10689

Closed
kroeckx opened this issue Aug 25, 2021 · 4 comments
Closed

Doesn't back off on backfill if remote server returns 404 #10689

kroeckx opened this issue Aug 25, 2021 · 4 comments
Labels
A-Federation T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.

Comments

@kroeckx
Copy link

kroeckx commented Aug 25, 2021

Synapse 1.40.0 does not seem to back off on backfill failures. My log contains a error every 3 seconds, and it's been doing that for at least 30 minutes.

It's trying to talk to Conduit which currently doesn't implement it yet and returns a 404.

@reivilibre
Copy link
Contributor

reivilibre commented Aug 27, 2021

backoff_on_404=False seems to be the culprit — in other words, Synapse won't currently backoff if the remote server returns 404 (it would have done so otherwise).

To add more complexity:
In this case, backing off would also be undesirable for Conduit — it would mean that we would stop outbound federation etc (assuming that because the backfill failed, the Conduit server is down), when in reality other functionality of Conduit still works.

The log spam and traffic is a nuisance, but it's hard to know what we should do here. If we wanted to support this in the best way, we would probably have to have fine-grained backoffs (in the sense that we can backoff from specific kinds of requests, e.g. backfill only, whilst still doing other requests)...

@reivilibre reivilibre changed the title Doesn't back off on backfill failure Doesn't back off on backfill if remote server returns 404 Aug 27, 2021
@reivilibre
Copy link
Contributor

reivilibre commented Aug 27, 2021

extra thoughts on smarter backoff: #8917
also related: #5442

@callahad
Copy link
Contributor

callahad commented Sep 2, 2021

Also worth linking to Conduit's issue tracker for implementing backfill:

@kroeckx Is there any harm here beyond logspam on the Synapse side?

It seems like this would best be tackled as part of #8917, but that's realistically, that's unlikely to get scheduled or completed in the next several months.

@MadLittleMods MadLittleMods added A-Federation T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements. labels Sep 4, 2021
@richvdh
Copy link
Member

richvdh commented Dec 23, 2021

I think this is essentially a duplicate of #5442

@richvdh richvdh closed this as completed Dec 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-Federation T-Enhancement New features, changes in functionality, improvements in performance, or user-facing enhancements.
Projects
None yet
Development

No branches or pull requests

5 participants